diff options
Diffstat (limited to 'tests/js/testmagic.nim')
-rw-r--r-- | tests/js/testmagic.nim | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/js/testmagic.nim b/tests/js/testmagic.nim new file mode 100644 index 000000000..8e06f1a9b --- /dev/null +++ b/tests/js/testmagic.nim @@ -0,0 +1,12 @@ +discard """ + output: '''true +123 +''' +""" + +# This file tests some magic + +var foo = cstring("foo") +var bar = cstring("foo") +echo(foo == bar) +echo "01234"[1 .. ^2] |