PageRenderTime 9ms CodeModel.GetById 1ms app.highlight 4ms RepoModel.GetById 1ms app.codeStats 0ms

/trunk/Examples/test-suite/go/inctest_runme.go

#
Go | 18 lines | 13 code | 4 blank | 1 comment | 4 complexity | a33185e9d93d77f9c10929977c7794bf MD5 | raw file
 1package main
 2
 3import "./inctest"
 4
 5func main() {
 6	inctest.NewA()
 7	inctest.NewB()
 8
 9	// Check the import in subdirectory worked
10	if inctest.Importtest1(5) != 15 {
11		panic("import test 1 failed")
12	}
13
14	a := []byte("black")
15	if inctest.Importtest2(string(a)) != "white" {
16		panic("import test 2 failed")
17	}
18}