(t *testing.T)
| 6 | import "testing" |
| 7 | |
| 8 | func TestOpcodeHasString(t *testing.T) { |
| 9 | for o := Bad; o < lastOpcode; o++ { |
| 10 | if o.String() != opNames[o] { |
| 11 | t.Errorf("opcode string not match. Expected %s, received %s", opNames[o], o.String()) |
| 12 | } |
| 13 | } |
| 14 | } |