mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2024-11-30 19:33:36 +00:00
21 lines
346 B
Go
21 lines
346 B
Go
|
package opcode
|
||
|
|
||
|
import (
|
||
|
"testing"
|
||
|
|
||
|
"github.com/stretchr/testify/assert"
|
||
|
)
|
||
|
|
||
|
// Nothing more to test here, really.
|
||
|
func TestStringer(t *testing.T) {
|
||
|
tests := map[Opcode]string{
|
||
|
ADD: "ADD",
|
||
|
SUB: "SUB",
|
||
|
THROWIFNOT: "THROWIFNOT",
|
||
|
0xff: "Opcode(255)",
|
||
|
}
|
||
|
for o, s := range tests {
|
||
|
assert.Equal(t, s, o.String())
|
||
|
}
|
||
|
}
|