hurr durr hex/int
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Sid 2020-10-10 22:30:16 +01:00
parent 75ab3648a1
commit f89e28ab6d

View File

@ -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)
} }
} }