From 355d95c60220eca869d7c4c52e076b81ef013c5d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ricardo=20J=20Gonz=C3=A1lez=20C?= <26823011+ricglz@users.noreply.github.com> Date: Tue, 31 May 2022 16:34:12 -0500 Subject: [PATCH] Fix tests --- src/tests.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/tests.rs b/src/tests.rs index 2b4717e..9f51835 100644 --- a/src/tests.rs +++ b/src/tests.rs @@ -12,7 +12,7 @@ fn parse_ast_has_error(filename: &str) { println!("Testing {:?}", filename); let program = std::fs::read_to_string(filename).expect(filename); let ast = get_ast(&program); - let res = parse_ast(&ast, false); + let res = parse_ast(&ast, false, false); assert!(res.is_err()); insta::assert_debug_snapshot!(res.unwrap_err()); } @@ -21,7 +21,7 @@ fn parse_ast_is_ok(filename: &str) -> QuadrupleManager { println!("Testing {:?}", filename); let program = std::fs::read_to_string(filename).expect(filename); let ast = get_ast(&program); - let res = parse_ast(&ast, false); + let res = parse_ast(&ast, false, false); assert!(res.is_ok()); let quad_manager = res.unwrap(); insta::assert_display_snapshot!(quad_manager);