aboutsummaryrefslogtreecommitdiff
path: root/basewords_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'basewords_test.go')
-rw-r--r--basewords_test.go6
1 files changed, 4 insertions, 2 deletions
diff --git a/basewords_test.go b/basewords_test.go
index 769036d..a1dd917 100644
--- a/basewords_test.go
+++ b/basewords_test.go
@@ -5,9 +5,11 @@ import "testing"
func TestBaseWords(t *testing.T) {
for word, alu := range BaseWords {
t.Run(word, func(t *testing.T) {
- for _, ins := range alu {
- t.Logf("%4.0X", ins.Compile())
+ buf := make([]uint16, len(alu))
+ for i, ins := range alu {
+ buf[i] = ins.Compile()
}
+ t.Logf("%4.0X", buf)
})
}
}