testmagic.nim 162 B

12345678910111213
  1. discard """
  2. output: '''true
  3. 123
  4. '''
  5. """
  6. # This file tests some magic
  7. var foo = cstring("foo")
  8. var bar = cstring("foo")
  9. echo(foo == bar)
  10. echo "01234"[1 .. ^2]