github.com/nevalang/neva@v0.23.1-0.20240507185603-7696a9bb8dda/e2e/print_float/e2e_test.go (about) 1 package test 2 3 // in this file we test files designed specifically for e2e. 4 5 import ( 6 "os/exec" 7 "testing" 8 9 "github.com/stretchr/testify/require" 10 ) 11 12 func Test(t *testing.T) { 13 cmd := exec.Command("neva", "run", "main") 14 15 out, err := cmd.CombinedOutput() 16 require.NoError(t, err) 17 require.Equal( 18 t, 19 "42\n", 20 string(out), 21 ) 22 23 require.Equal(t, 0, cmd.ProcessState.ExitCode()) 24 }