From 9812c76e1f697599535f09a2611a2afabcb87b4a Mon Sep 17 00:00:00 2001 From: gluaxspeed Date: Wed, 10 Feb 2021 12:49:18 -0500 Subject: [PATCH] fix test needed to expect it to fail --- compiler/tests/input_files/program_input/main_array.leo | 2 +- compiler/tests/input_files/program_input/mod.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/compiler/tests/input_files/program_input/main_array.leo b/compiler/tests/input_files/program_input/main_array.leo index 58acae24bf..9d98777c14 100644 --- a/compiler/tests/input_files/program_input/main_array.leo +++ b/compiler/tests/input_files/program_input/main_array.leo @@ -1,3 +1,3 @@ -function main (x: [i16; 2]) { +function main (x: [i16; 1]) { console.log("{}", x); } \ No newline at end of file diff --git a/compiler/tests/input_files/program_input/mod.rs b/compiler/tests/input_files/program_input/mod.rs index 6c5d2bbb99..58efad93c1 100644 --- a/compiler/tests/input_files/program_input/mod.rs +++ b/compiler/tests/input_files/program_input/mod.rs @@ -91,5 +91,5 @@ fn test_input_array_dimensions_mismatch() { let program = parse_program_with_input(program_string, input_string).unwrap(); - assert_satisfied(program); + expect_fail(program); }