pkg/vm: go fmt
Some errors were introduced by github merges.
This commit is contained in:
parent
0258fa48f8
commit
a976c4d04f
3 changed files with 3 additions and 3 deletions
|
@ -36,7 +36,7 @@ var opFunc = map[stack.Instruction]stackInfo{
|
||||||
stack.MIN: Min,
|
stack.MIN: Min,
|
||||||
stack.MAX: Max,
|
stack.MAX: Max,
|
||||||
stack.WITHIN: Within,
|
stack.WITHIN: Within,
|
||||||
stack.NUMEQUAL: NumEqual,
|
stack.NUMEQUAL: NumEqual,
|
||||||
stack.NUMNOTEQUAL: NumNotEqual,
|
stack.NUMNOTEQUAL: NumNotEqual,
|
||||||
stack.BOOLAND: BoolAnd,
|
stack.BOOLAND: BoolAnd,
|
||||||
stack.BOOLOR: BoolOr,
|
stack.BOOLOR: BoolOr,
|
||||||
|
|
|
@ -226,7 +226,7 @@ func DEPTH(op stack.Instruction, ctx *stack.Context, istack *stack.Invocation, r
|
||||||
return FAULT, err
|
return FAULT, err
|
||||||
}
|
}
|
||||||
|
|
||||||
ctx.Estack.Push(length)
|
ctx.Estack.Push(length)
|
||||||
|
|
||||||
return NONE, nil
|
return NONE, nil
|
||||||
}
|
}
|
||||||
|
|
|
@ -302,7 +302,7 @@ func TestPickOp(t *testing.T) {
|
||||||
itemB, err := ctx.Estack.PopInt()
|
itemB, err := ctx.Estack.PopInt()
|
||||||
assert.Nil(t, err)
|
assert.Nil(t, err)
|
||||||
|
|
||||||
itemA2, err := ctx.Estack.PopInt()
|
itemA2, err := ctx.Estack.PopInt()
|
||||||
assert.Nil(t, err)
|
assert.Nil(t, err)
|
||||||
|
|
||||||
assert.Equal(t, int64(3), itemA.Value().Int64())
|
assert.Equal(t, int64(3), itemA.Value().Int64())
|
||||||
|
|
Loading…
Reference in a new issue