diff --git a/chip8/chip8_test.go b/chip8/chip8_test.go index 0d88064..c39fb76 100644 --- a/chip8/chip8_test.go +++ b/chip8/chip8_test.go @@ -22,7 +22,7 @@ func slicesEqual(x, y []byte) bool { func TestCreateCPU(t *testing.T) { prog := []byte{1, 2, 3, 4} newCPU := NewCHIP8(prog) - if !slicesEqual(newCPU.memory[200:204], prog) { + if !slicesEqual(newCPU.memory[0x200:0x204], prog) { t.Errorf("CPU not initalized properly") } }