From 7143cdc2dee565e27d29dfaf0e9cb585e25a36b3 Mon Sep 17 00:00:00 2001 From: Ivan Izaguirre Date: Sun, 26 Sep 2021 01:43:21 +0200 Subject: [PATCH] Make it work pre go 1.16 --- core6502/harteSuite_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core6502/harteSuite_test.go b/core6502/harteSuite_test.go index ae2359e..ba5b89d 100644 --- a/core6502/harteSuite_test.go +++ b/core6502/harteSuite_test.go @@ -3,7 +3,7 @@ package core6502 import ( "encoding/json" "fmt" - "os" + "io/ioutil" "testing" ) @@ -72,7 +72,7 @@ func TestHarteCMOS65c02(t *testing.T) { } func testOpcode(t *testing.T, s *State, path string, opcode string) { - data, err := os.ReadFile(path + opcode + ".json") + data, err := ioutil.ReadFile(path + opcode + ".json") if err != nil { t.Fatal(err) }