cl: _testdata/printval
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user