Skip to content

Commit

Permalink
"fixed jumpf test"
Browse files Browse the repository at this point in the history
  • Loading branch information
AdityaKhowalGithub committed Apr 11, 2024
1 parent 2301287 commit daa771c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/vm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -222,10 +222,10 @@ mod tests {
#[test]
fn test_jmpf_opcode() {
let mut test_vm = get_test_vm();
test_vm.registers[0] = 1;
test_vm.program = vec![7, 0, 0, 0];
test_vm.registers[0] = 2;
test_vm.program = vec![7, 0, 0, 0, 6, 0, 0, 0];
test_vm.run_once();
assert_eq!(test_vm.pc, 1);
assert_eq!(test_vm.pc, 4);
}

#[test]
Expand Down

0 comments on commit daa771c

Please sign in to comment.