diff --git a/pkg/vm/vm_ops_stackmani_test.go b/pkg/vm/vm_ops_stackmani_test.go index 45e84ddb7..eb9bf9a91 100644 --- a/pkg/vm/vm_ops_stackmani_test.go +++ b/pkg/vm/vm_ops_stackmani_test.go @@ -149,49 +149,3 @@ func TestPickOp(t *testing.T) { assert.Equal(t, int64(3), itemA2.Value().Int64()) } - -/* -func TestXswapOp(t *testing.T) { - - v := VM{} - - sert.Nil(t, err) - - ctx := stack.NewContext([]byte{}) - ctx.Estack.Push(a).Push(b).Push(c).Push(d) - - // pop n (= d = 2) from the stack. - // we wa, err := stack.NewInt(big.NewInt(3)) - assert.Nil(t, err) - - b, err := stack.NewInt(big.NewInt(6)) - assert.Nil(t, err) - - c, err := stack.NewInt(big.NewInt(9)) - assert.Nil(t, err) - - d, err := stack.NewInt(big.NewInt(2)) - asill swap the n-item which - // is located in position len(stack)-n-1 (= 3-2-1= 0) - // with the top stack item. - // The final stack will be [c,b,a] - v.executeOp(stack.XSWAP, ctx) - - // Stack should have three items - assert.Equal(t, 3, ctx.Estack.Len()) - - itemA, err := ctx.Estack.PopInt() - assert.Nil(t, err) - - itemB, err := ctx.Estack.PopInt() - assert.Nil(t, err) - - itemC, err := ctx.Estack.PopInt() - assert.Nil(t, err) - - assert.Equal(t, int64(3), itemA.Value().Int64()) - assert.Equal(t, int64(6), itemB.Value().Int64()) - assert.Equal(t, int64(9), itemC.Value().Int64()) - -} -*/