neoneo-go/pkg/compiler/numeric_test.go

26 lines
287 B
Go
Raw Normal View History

package compiler_test
import (
"math/big"
"testing"
)
var numericTestCases = []testCase{
{
"add",
`
package foo
func Main() int {
x := 2
y := 4
return x + y
}
`,
big.NewInt(6),
},
}
func TestNumericExprs(t *testing.T) {
2019-10-18 15:36:54 +00:00
runTestCases(t, numericTestCases)
}