From 0bd4180b859c6599b15e5252d85094ea9c83c10f Mon Sep 17 00:00:00 2001 From: "S.D" Date: Mon, 12 Oct 2020 17:22:36 +0100 Subject: [PATCH] fix unit test --- chip8/chip8_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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") } }