diff --git a/pkg/chip8/chip8_test.go b/pkg/chip8/chip8_test.go index 38b98ed..2af7c7f 100644 --- a/pkg/chip8/chip8_test.go +++ b/pkg/chip8/chip8_test.go @@ -143,7 +143,7 @@ func TestSkipIfRegistersEqual(t *testing.T) { func TestSetRegisterTo(t *testing.T) { cpu := Chip8{opcode: 0x0824} cpu.setRegisterTo() - if cpu.registers[8] != 24 { - t.Errorf("Register 8 is %d wanted %d", cpu.registers[8], 24) + if cpu.registers[8] != 0x24 { + t.Errorf("Register 8 is %d wanted %d", cpu.registers[8], 0x24) } }