diff options
Diffstat (limited to 'Examples/test-suite/javascript/grouping_runme.js')
-rw-r--r-- | Examples/test-suite/javascript/grouping_runme.js | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/Examples/test-suite/javascript/grouping_runme.js b/Examples/test-suite/javascript/grouping_runme.js new file mode 100644 index 000000000..2649dea8f --- /dev/null +++ b/Examples/test-suite/javascript/grouping_runme.js @@ -0,0 +1,15 @@ +var grouping = require("grouping"); + +var x = grouping.test1(42); +if (x != 42) + throw new Error; + +grouping.test2(42); + +var x = grouping.do_unary(37, grouping.NEGATE); +if (x != -37) + throw new Error; + +grouping.test3 = 42; +if (grouping.test3 !== 42) + throw new Error; |