PageRenderTime 34ms CodeModel.GetById 24ms app.highlight 6ms RepoModel.GetById 1ms app.codeStats 0ms

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

#
Go | 25 lines | 23 code | 2 blank | 0 comment | 12 complexity | facc053f5e9186048d5450de9724008c MD5 | raw file
 1package main
 2
 3import "./special_variable_macros"
 4
 5func main() {
 6	name := special_variable_macros.NewName()
 7	if special_variable_macros.TestFred(name) != "none" {
 8		panic("test failed")
 9	}
10	if special_variable_macros.TestJack(name) != "$specialname" {
11		panic("test failed")
12	}
13	if special_variable_macros.TestJill(name) != "jilly" {
14		panic("test failed")
15	}
16	if special_variable_macros.TestMary(name) != "SWIGTYPE_p_NameWrap" {
17		panic("test failed")
18	}
19	if special_variable_macros.TestJim(name) != "multiname num" {
20		panic("test failed")
21	}
22	if special_variable_macros.TestJohn(special_variable_macros.NewPairIntBool(10, false)) != 123 {
23		panic("test failed")
24	}
25}