cl: _testdata/printval

This commit is contained in:
xushiwei
2024-04-25 14:25:14 +08:00
parent e4f8edc07c
commit 1014fa53dd
4 changed files with 134 additions and 10 deletions

View File

@@ -22,15 +22,15 @@ import (
"github.com/goplus/llgo/cl/cltest"
)
func TestFromTestdata(t *testing.T) {
cltest.FromDir(t, "", "./_testdata")
}
func testCompile(t *testing.T, src, expected string) {
t.Helper()
cltest.TestCompileEx(t, src, "foo.go", expected)
}
func TestFromTestdata(t *testing.T) {
cltest.FromDir(t, "", "./_testdata")
}
func TestVar(t *testing.T) {
testCompile(t, `package foo