From becd55dced7546ee4ba12cec5d849f76878059be Mon Sep 17 00:00:00 2001 From: Simon Hafner Date: Thu, 26 Sep 2013 15:05:00 -0500 Subject: moved eqproc to the correct magic position also added mEqCString to evalOps so the test runs --- tests/js/testmagic.nim | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 tests/js/testmagic.nim (limited to 'tests/js') diff --git a/tests/js/testmagic.nim b/tests/js/testmagic.nim new file mode 100644 index 000000000..c58496dfd --- /dev/null +++ b/tests/js/testmagic.nim @@ -0,0 +1,10 @@ +discard """ + cmd: "nimrod js --hints:on -r $# $#" + output: '''true''' +""" + +# This file tests some magic + +const foo = cstring("foo") +const bar = cstring("foo") +echo(foo == bar) -- cgit 1.4.1-2-gfad0