/trunk/Examples/test-suite/go/multi_import_runme.go
Go | 29 lines | 25 code | 4 blank | 0 comment | 10 complexity | 070a2d4c5689f71056575a89c7e86470 MD5 | raw file
Possible License(s): LGPL-2.1, Cube, GPL-3.0, 0BSD, GPL-2.0
- package main
- import "multi_import_a"
- import "multi_import_b"
- func main() {
- x := multi_import_b.NewXXX()
- if x.Testx() != 0 {
- panic(0)
- }
- y := multi_import_b.NewYYY()
- if y.Testx() != 0 {
- panic(0)
- }
- if y.Testy() != 1 {
- panic(0)
- }
- z := multi_import_a.NewZZZ()
- if z.Testx() != 0 {
- println("z.Testx", z.Testx(), z.Testz())
- panic(0)
- }
- if z.Testz() != 2 {
- println("z.Testz", z.Testz())
- panic(0)
- }
- }