add missing test output check

This commit is contained in:
Marc Vertes
2018-09-20 14:13:30 +02:00
parent e82a223541
commit bddcb841ea
2 changed files with 7 additions and 3 deletions

View File

@@ -1,6 +1,5 @@
package main
//const a = 1
const (
a = iota
b
@@ -9,3 +8,6 @@ const (
func main() {
println(a, b)
}
// Output:
// 0 1

View File

@@ -540,7 +540,6 @@ func Example_const0() {
src := `
package main
//const a = 1
const (
a = iota
b
@@ -548,10 +547,13 @@ const (
func main() {
println(a, b)
}`
}
`
i := NewInterpreter(Opt{Entry: "main"})
i.Eval(src)
// Output:
// 0 1
}
func Example_const1() {