vm: make PUSH0 emit Integer
This commit is contained in:
parent
820b050b18
commit
f4fa712440
7 changed files with 14 additions and 17 deletions
|
@ -30,7 +30,7 @@ func TestGT(t *testing.T) {
|
|||
return 0
|
||||
}
|
||||
`
|
||||
eval(t, src, []byte{})
|
||||
eval(t, src, big.NewInt(0))
|
||||
}
|
||||
|
||||
func TestGTE(t *testing.T) {
|
||||
|
@ -44,7 +44,7 @@ func TestGTE(t *testing.T) {
|
|||
return 0
|
||||
}
|
||||
`
|
||||
eval(t, src, []byte{})
|
||||
eval(t, src, big.NewInt(0))
|
||||
}
|
||||
|
||||
func TestLAND(t *testing.T) {
|
||||
|
@ -89,5 +89,5 @@ func TestNestedIF(t *testing.T) {
|
|||
return 0
|
||||
}
|
||||
`
|
||||
eval(t, src, []byte{})
|
||||
eval(t, src, big.NewInt(0))
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue