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

# · Go · 18 lines · 13 code · 4 blank · 1 comment · 4 complexity · a33185e9d93d77f9c10929977c7794bf MD5 · raw file

  1. package main
  2. import "./inctest"
  3. func main() {
  4. inctest.NewA()
  5. inctest.NewB()
  6. // Check the import in subdirectory worked
  7. if inctest.Importtest1(5) != 15 {
  8. panic("import test 1 failed")
  9. }
  10. a := []byte("black")
  11. if inctest.Importtest2(string(a)) != "white" {
  12. panic("import test 2 failed")
  13. }
  14. }