Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanballs committed Sep 11, 2024
1 parent dd0a821 commit 58c8626
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/instructions/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@ mod test {
use super::parse;

fn assert_instruction(opcode: u8, imm8: u8, json: &Value) {
let expected_bytes = json["bytes"].as_u64().unwrap() as u8;
let expected_bytes = json["bytes"].as_u64().unwrap() as u16;
let expected_cycles = json["cycles"][0].as_u64().unwrap() as u8;

// Call the parse function (you need to implement this)
Expand Down Expand Up @@ -561,7 +561,7 @@ mod test {
fn jr_imm8() {
assert!(matches!(
get_instruction(0x18, 0xFF, 0x0),
Instruction::JrImm8(0xFF)
Instruction::JrImm8(-1)
))
}

Expand Down

0 comments on commit 58c8626

Please sign in to comment.