aboutsummaryrefslogtreecommitdiff
path: root/crates/tools/tests
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2019-02-08 11:49:43 +0000
committerAleksey Kladov <[email protected]>2019-02-08 11:49:43 +0000
commit12e3b4c70b5ef23b2fdfc197296d483680e125f9 (patch)
tree71baa0e0a62f9f6b61450501c5f821f67badf9e4 /crates/tools/tests
parent5cb1d41a30d25cbe136402644bf5434dd667f1e5 (diff)
reformat the world
Diffstat (limited to 'crates/tools/tests')
-rw-r--r--crates/tools/tests/cli.rs10
1 files changed, 2 insertions, 8 deletions
diff --git a/crates/tools/tests/cli.rs b/crates/tools/tests/cli.rs
index 2ee4b5223..aab52a4aa 100644
--- a/crates/tools/tests/cli.rs
+++ b/crates/tools/tests/cli.rs
@@ -10,19 +10,13 @@ fn generated_grammar_is_fresh() {
10#[test] 10#[test]
11fn generated_tests_are_fresh() { 11fn generated_tests_are_fresh() {
12 if let Err(error) = gen_tests(Verify) { 12 if let Err(error) = gen_tests(Verify) {
13 panic!( 13 panic!("{}. Please update tests by running `cargo gen-tests`", error);
14 "{}. Please update tests by running `cargo gen-tests`",
15 error
16 );
17 } 14 }
18} 15}
19 16
20#[test] 17#[test]
21fn check_code_formatting() { 18fn check_code_formatting() {
22 if let Err(error) = run_rustfmt(Verify) { 19 if let Err(error) = run_rustfmt(Verify) {
23 panic!( 20 panic!("{}. Please format the code by running `cargo format`", error);
24 "{}. Please format the code by running `cargo format`",
25 error
26 );
27 } 21 }
28} 22}