From b43bcd43c604126c2b250a30cc56459be754572a Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Tue, 16 Oct 2018 20:53:19 +0300 Subject: fix tests --- crates/tools/tests/cli.rs | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) (limited to 'crates/tools/tests') diff --git a/crates/tools/tests/cli.rs b/crates/tools/tests/cli.rs index 16899bb5f..0bb5d15d8 100644 --- a/crates/tools/tests/cli.rs +++ b/crates/tools/tests/cli.rs @@ -1,23 +1,12 @@ extern crate tools; use tools::{ - project_root, render_template, update, AST, AST_TEMPLATE, SYNTAX_KINDS, SYNTAX_KINDS_TEMPLATE, + generate, Verify }; #[test] fn verify_template_generation() { - if let Err(error) = update( - &project_root().join(SYNTAX_KINDS), - &render_template(&project_root().join(SYNTAX_KINDS_TEMPLATE)).unwrap(), - true, - ) { - panic!("{}. Please update it by running `cargo gen-kinds`", error); - } - if let Err(error) = update( - &project_root().join(AST), - &render_template(&project_root().join(AST_TEMPLATE)).unwrap(), - true, - ) { + if let Err(error) = generate(Verify) { panic!("{}. Please update it by running `cargo gen-kinds`", error); } } -- cgit v1.2.3