Skip to content
This repository has been archived by the owner on Jan 8, 2025. It is now read-only.

Commit

Permalink
feat: rename to test_valid_jump_destination_inside_jumpn
Browse files Browse the repository at this point in the history
  • Loading branch information
bajpai244 committed Dec 5, 2023
1 parent ab7f70d commit 7da22c0
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions crates/evm/src/tests/test_model/test_vm.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ fn test_is_valid_jump_destinations() {

vm.init_valid_jump_destinations();

let expected_valid_jump_destinations = array![0x3, 0x9].span();
let expected_valid_jump_destinations = array![3, 9].span();
assert!(
vm.valid_jumpdests == expected_valid_jump_destinations,
"expected valid_jump_destinations to be [0x3, 0x9]"
"expected valid_jump_destinations to be [3, 9]"
);

assert!(vm.is_valid_jump(0x3) == true, "expected jump to be valid");
Expand All @@ -28,8 +28,7 @@ fn test_is_valid_jump_destinations() {
}

#[test]
fn test_valid_jump_destination_failing() {
// PUSH1, 0x03, JUMP, JUMPDEST, PUSH1, 0x09, JUMP, PUSH1 0x2, JUMPDDEST, PUSH1 0x2
fn test_valid_jump_destination_inside_jumpn() {
let bytecode: Array<u8> = array![0x60, 0x5B, 0x60, 0x00];
let mut message: Message = Default::default();
message.code = bytecode.span();
Expand Down

0 comments on commit 7da22c0

Please sign in to comment.