1
0

test.tengo 428 B

123456789101112131415
  1. #!/usr/bin/env tengo
  2. os := import("os")
  3. one := import("one")
  4. fmt := import("fmt")
  5. text := import("text")
  6. expected := ["test", "one", "two", "three", "four", "five"]
  7. expected = text.join(expected, " ")
  8. if v := one.fn("test"); v != expected {
  9. fmt.printf("relative import test error:\n\texpected: %v\n\tgot : %v\n",
  10. expected, v)
  11. os.exit(1)
  12. }
  13. args := text.join(os.args(), " ")
  14. fmt.println("ok\t", args)