fix couple of tests

This commit is contained in:
Michael McLoughlin
2018-12-11 22:35:01 -08:00
parent 79bdb92163
commit 19d1761694
2 changed files with 4 additions and 2 deletions

View File

@@ -9,6 +9,7 @@ import (
"github.com/mmcloughlin/avo/internal/gen"
"github.com/mmcloughlin/avo/internal/inst"
"github.com/mmcloughlin/avo/internal/test"
"github.com/mmcloughlin/avo/printer"
)
func TestHaveInstructions(t *testing.T) {
@@ -70,7 +71,7 @@ func TestInstructionProperties(t *testing.T) {
}
func TestAssembles(t *testing.T) {
g := gen.NewAsmTest(gen.Config{})
g := gen.NewAsmTest(printer.NewDefaultConfig())
b, err := g.Generate(inst.Instructions)
if err != nil {
t.Fatal(err)

View File

@@ -7,6 +7,7 @@ import (
"github.com/mmcloughlin/avo/internal/inst"
"github.com/mmcloughlin/avo/internal/load"
"github.com/mmcloughlin/avo/internal/test"
"github.com/mmcloughlin/avo/printer"
)
func Load(t *testing.T) []inst.Instruction {
@@ -21,7 +22,7 @@ func Load(t *testing.T) []inst.Instruction {
func TestAssembles(t *testing.T) {
is := Load(t)
g := gen.NewAsmTest(gen.Config{})
g := gen.NewAsmTest(printer.NewDefaultConfig())
b, err := g.Generate(is)
if err != nil {
t.Fatal(err)