This commit is contained in:
parent
75ab3648a1
commit
f89e28ab6d
@ -143,7 +143,7 @@ func TestSkipIfRegistersEqual(t *testing.T) {
|
|||||||
func TestSetRegisterTo(t *testing.T) {
|
func TestSetRegisterTo(t *testing.T) {
|
||||||
cpu := Chip8{opcode: 0x0824}
|
cpu := Chip8{opcode: 0x0824}
|
||||||
cpu.setRegisterTo()
|
cpu.setRegisterTo()
|
||||||
if cpu.registers[8] != 24 {
|
if cpu.registers[8] != 0x24 {
|
||||||
t.Errorf("Register 8 is %d wanted %d", cpu.registers[8], 24)
|
t.Errorf("Register 8 is %d wanted %d", cpu.registers[8], 0x24)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user