mirror of
https://github.com/ivanizag/izapple2.git
synced 2025-03-12 19:31:47 +00:00
Make it work pre go 1.16
This commit is contained in:
parent
4f963b0bd6
commit
7143cdc2de
@ -3,7 +3,7 @@ package core6502
|
|||||||
import (
|
import (
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
"fmt"
|
"fmt"
|
||||||
"os"
|
"io/ioutil"
|
||||||
"testing"
|
"testing"
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -72,7 +72,7 @@ func TestHarteCMOS65c02(t *testing.T) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func testOpcode(t *testing.T, s *State, path string, opcode string) {
|
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 {
|
if err != nil {
|
||||||
t.Fatal(err)
|
t.Fatal(err)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user