Skip to content

Commit

Permalink
TestSimplifyPkgPath
Browse files Browse the repository at this point in the history
  • Loading branch information
xushiwei committed Jul 13, 2024
1 parent 6c6e87b commit a5ec9de
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions cl/builtin_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,15 @@ func getGoxConf() *gogen.Config {
return &gogen.Config{Fset: fset, Importer: imp}
}

func TestSimplifyPkgPath(t *testing.T) {
if simplifyPkgPath("c/lua") != "github.com/goplus/llgo/c/lua" {
t.Fatal("simplifyPkgPath: c/lua")
}
if simplifyPkgPath("cpp/std") != "github.com/goplus/llgo/cpp/std" {
t.Fatal("simplifyPkgPath: cpp/std")
}
}

func TestCompileLambdaExpr(t *testing.T) {
ctx := &blockCtx{
pkgCtx: &pkgCtx{},
Expand Down

0 comments on commit a5ec9de

Please sign in to comment.