github.com/nevalang/neva@v0.23.1-0.20240507185603-7696a9bb8dda/e2e/float_const_with_int_lit/e2e_test.go (about)

     1  package test
     2  
     3  import (
     4  	"os/exec"
     5  	"testing"
     6  
     7  	"github.com/stretchr/testify/require"
     8  )
     9  
    10  func Test(t *testing.T) {
    11  	cmd := exec.Command("neva", "run", "main")
    12  
    13  	out, err := cmd.CombinedOutput()
    14  	require.NoError(t, err)
    15  	require.Equal(
    16  		t,
    17  		"",
    18  		string(out),
    19  	)
    20  
    21  	require.Equal(t, 0, cmd.ProcessState.ExitCode())
    22  }