mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2024-11-23 03:38:35 +00:00
Remove context_test
rename invocation to invocationstack export vmstate
This commit is contained in:
parent
9eb11d2822
commit
a7e973030c
3 changed files with 2 additions and 21 deletions
|
@ -1,20 +0,0 @@
|
|||
package stack
|
||||
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/stretchr/testify/assert"
|
||||
)
|
||||
|
||||
func TestNextInstruction(t *testing.T) {
|
||||
// PUSHBYTES1 2
|
||||
builder := NewBuilder()
|
||||
builder.EmitBytes([]byte{0x02}) //[]byte{0x01, 0x02}
|
||||
|
||||
ctx := NewContext(builder.Bytes())
|
||||
op := ctx.Next()
|
||||
byt := ctx.readByte()
|
||||
|
||||
assert.Equal(t, PUSHBYTES1, op)
|
||||
assert.Equal(t, byte(2), byt)
|
||||
}
|
|
@ -1,6 +1,7 @@
|
|||
package vm
|
||||
|
||||
type vmstate byte
|
||||
//Vmstate represents all possible states that the neo-vm can be in
|
||||
type Vmstate byte
|
||||
|
||||
const (
|
||||
NONE = 0
|
||||
|
|
Loading…
Reference in a new issue