mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2024-12-25 03:56:34 +00:00
Clean up comments
This commit is contained in:
parent
d43dcf03cb
commit
458e6f922b
1 changed files with 0 additions and 46 deletions
|
@ -149,49 +149,3 @@ func TestPickOp(t *testing.T) {
|
||||||
assert.Equal(t, int64(3), itemA2.Value().Int64())
|
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())
|
|
||||||
|
|
||||||
}
|
|
||||||
*/
|
|
||||||
|
|
Loading…
Reference in a new issue