rust-analyzer/crates/tools/tests/cli.rs
Aleksey Kladov 6be50f7d5d Reformat all
2018-10-31 23:41:43 +03:00

20 lines
441 B
Rust

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
);
}
}