Test for grow

This commit is contained in:
Ian Gulliver
2021-11-20 19:44:57 -10:00
parent 0850ada0c4
commit 789e1e7333
2 changed files with 58 additions and 11 deletions

View File

@@ -3,17 +3,7 @@ package test
import "testing"
import "github.com/firestuff/subcoding/gen"
import "github.com/firestuff/subcoding/asm"
func TestRandProgram(t *testing.T) {
for i := 0; i < 100; i++ {
prog := gen.RandProgram(4, 4, 0)
src, err := asm.Disassemble(prog)
if err != nil {
t.Fatal(err)
}
t.Log(src)
}
gen.RandProgram(4, 4, 0)
}