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); }