From 6e124e52ff29519fef77d786e2d993ad1187816f Mon Sep 17 00:00:00 2001 From: collin Date: Sat, 24 Oct 2020 17:01:40 -0700 Subject: [PATCH] add dynamic check errors for statements --- compiler/tests/statements/mod.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/compiler/tests/statements/mod.rs b/compiler/tests/statements/mod.rs index 3180c6fa30..cb6efc3552 100644 --- a/compiler/tests/statements/mod.rs +++ b/compiler/tests/statements/mod.rs @@ -14,7 +14,7 @@ // You should have received a copy of the GNU General Public License // along with the Leo library. If not, see . -use crate::{assert_satisfied, expect_compiler_error, generate_main_input, parse_program}; +use crate::{assert_satisfied, expect_dynamic_check_error, generate_main_input, parse_program}; use leo_typed::InputValue; pub mod conditional; @@ -60,7 +60,7 @@ fn test_iteration_basic() { #[test] fn test_num_returns_fail() { let bytes = include_bytes!("num_returns_fail.leo"); - let program = parse_program(bytes).unwrap(); + let error = parse_program(bytes).err().unwrap(); - expect_compiler_error(program); + expect_dynamic_check_error(error); }