From 6d65226144694ff1d40145f7b05488a10162e55a Mon Sep 17 00:00:00 2001 From: Dimitri Sokolyuk Date: Sun, 18 Jun 2017 12:50:14 +0200 Subject: Fix noop --- basewords_test.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'basewords_test.go') 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) }) } } -- cgit v1.2.3