forked from TrueCloudLab/neoneo-go
vm: uncomment TestForLoopBigIter
It works just fine.
This commit is contained in:
parent
1c7d203993
commit
7e8dc9ad66
1 changed files with 13 additions and 15 deletions
|
@ -357,18 +357,16 @@ func TestDec(t *testing.T) {
|
||||||
eval(t, src, big.NewInt(1))
|
eval(t, src, big.NewInt(1))
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO: This could be a nasty bug. Output of the VM is 65695.
|
func TestForLoopBigIter(t *testing.T) {
|
||||||
// Only happens above 100000, could be binary read issue.
|
src := `
|
||||||
//func TestForLoopBigIter(t *testing.T) {
|
package foo
|
||||||
// src := `
|
func Main() int {
|
||||||
// package foo
|
x := 0
|
||||||
// func Main() int {
|
for i := 0; i < 100000; i++ {
|
||||||
// x := 0
|
x = i
|
||||||
// for i := 0; i < 100000; i++ {
|
}
|
||||||
// x = i
|
return x
|
||||||
// }
|
}
|
||||||
// return x
|
`
|
||||||
// }
|
eval(t, src, big.NewInt(99999))
|
||||||
// `
|
}
|
||||||
// eval(t, src, big.NewInt(99999))
|
|
||||||
//}
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue