blob: 2d238d9ea5d114ba94750d36d8cbfd73c6cdf679 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
extern crate tools;
use tools::{generate, run_rustfmt, Verify};
#[test]
fn verify_template_generation() {
if let Err(error) = generate(Verify) {
panic!("{}. Please update it by running `cargo gen-syntax`", error);
}
}
#[test]
fn check_code_formatting() {
if let Err(error) = run_rustfmt(Verify) {
panic!(
"{}. Please format the code by running `cargo format`",
error
);
}
}
|