Remove context_test

rename invocation to invocationstack
export vmstate
This commit is contained in:
BlockChainDev 2019-03-16 21:52:05 +00:00
parent 9eb11d2822
commit a7e973030c
3 changed files with 2 additions and 21 deletions

View file

@ -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)
}

View file

@ -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