/trunk/Examples/test-suite/lua/char_strings_runme.lua

# · Lua · 12 lines · 8 code · 4 blank · 0 comment · 6 complexity · e5dab8ec14367b1569eb3910707db6d4 MD5 · raw file

  1. require("import") -- the import fn
  2. import("char_strings") -- import code
  3. assert (char_strings.CharPingPong("hi there") == "hi there")
  4. assert (char_strings.CharPingPong(nil) == nil)
  5. assert (char_strings.CharArrayPingPong("hi there") == "hi there")
  6. assert (char_strings.CharArrayPingPong(nil) == nil)
  7. assert (char_strings.CharArrayDimsPingPong("hi there") == "hi there")
  8. assert (char_strings.CharArrayDimsPingPong(nil) == nil)