aboutsummaryrefslogtreecommitdiff
path: root/crates/tools/tests
diff options
context:
space:
mode:
Diffstat (limited to 'crates/tools/tests')
-rw-r--r--crates/tools/tests/cli.rs8
1 files changed, 6 insertions, 2 deletions
diff --git a/crates/tools/tests/cli.rs b/crates/tools/tests/cli.rs
index 26d9a991c..4d5b03b65 100644
--- a/crates/tools/tests/cli.rs
+++ b/crates/tools/tests/cli.rs
@@ -11,6 +11,10 @@ const AST_TEMPLATE: &str = "../ra_syntax/src/ast/generated.rs.tera";
11 11
12#[test] 12#[test]
13fn verify_template_generation() { 13fn verify_template_generation() {
14 update(Path::new(SYNTAX_KINDS), &render_template(SYNTAX_KINDS_TEMPLATE, GRAMMAR).unwrap(), true).unwrap(); 14 if let Err(error) = update(Path::new(SYNTAX_KINDS), &render_template(SYNTAX_KINDS_TEMPLATE, GRAMMAR).unwrap(), true) {
15 update(Path::new(AST), &render_template(AST_TEMPLATE, GRAMMAR).unwrap(), true).unwrap(); 15 panic!("{}. Please update it by running `cargo gen-kinds`", error);
16 }
17 if let Err(error) = update(Path::new(AST), &render_template(AST_TEMPLATE, GRAMMAR).unwrap(), true) {
18 panic!("{}. Please update it by running `cargo gen-kinds`", error);
19 }
16} \ No newline at end of file 20} \ No newline at end of file