Skip to content

Commit

Permalink
Fix removed lines from merge
Browse files Browse the repository at this point in the history
  • Loading branch information
b-j-roberts committed Jul 26, 2024
1 parent 638fc38 commit 5a0108a
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/opcodes/tests/test_opcodes.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -131,10 +131,13 @@ fn test_op_TRUE() {
let mut compiler = CompilerTraitImpl::new();
let bytecode = compiler.compile(program);
let mut engine = EngineTraitImpl::new(bytecode);

let res = engine.step();
assert!(res, "Execution of step failed");


let dstack = engine.get_dstack();
assert_eq!(dstack.len(), 1, "Stack length is not 1");

let expected_stack = array!["\0\0\0\0\0\0\0\x01"];
assert_eq!(dstack, expected_stack.span(), "Stack is not equal to expected");
}
Expand All @@ -152,7 +155,7 @@ fn test_op_1add() {

let dstack = engine.get_dstack();
assert_eq!(dstack.len(), 1, "Stack length is not 1");

let expected_stack = array!["\0\0\0\0\0\0\0\x02"];
assert_eq!(dstack, expected_stack.span(), "Stack is not equal to expected");
}

0 comments on commit 5a0108a

Please sign in to comment.