mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2025-05-07 15:07:36 +00:00
parent
a3abdbd7f0
commit
b892db9976
3 changed files with 17 additions and 0 deletions
|
@ -28,3 +28,10 @@ func TestFromString(t *testing.T) {
|
|||
require.NoError(t, err)
|
||||
require.Equal(t, MUL, op)
|
||||
}
|
||||
|
||||
func TestIsValid(t *testing.T) {
|
||||
require.True(t, IsValid(ADD))
|
||||
require.True(t, IsValid(CONVERT))
|
||||
require.False(t, IsValid(0xff))
|
||||
require.False(t, IsValid(0xa5))
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue