Skip to content

Commit

Permalink
fix assert_with_code test
Browse files Browse the repository at this point in the history
  • Loading branch information
plafer committed Nov 21, 2023
1 parent ed0e870 commit 57d7ddc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions miden/tests/integration/operations/sys_ops.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use test_utils::{build_op_test, Felt, TestError};
use test_utils::{build_op_test, TestError};

// SYSTEM OPS ASSERTIONS - MANUAL TESTS
// ================================================================================================
Expand All @@ -19,7 +19,7 @@ fn assert_with_code() {
test.expect_stack(&[]);

// triggered assertion captures both the VM cycle and error code
let expected_err = format!("FailedAssertion(1, BaseElement({}))", Felt::new(123).inner());
let expected_err = "FailedAssertion(1, 123)";
let test = build_op_test!(asm_op, &[0]);
test.expect_error(TestError::ExecutionError(&expected_err));
}
Expand Down

0 comments on commit 57d7ddc

Please sign in to comment.