From b3d2350f33ad9bb72151b67c395678add8bb2a19 Mon Sep 17 00:00:00 2001 From: Jason Turner Date: Fri, 24 Jul 2015 11:49:23 -0600 Subject: [PATCH] Add test for order of operations --- unittests/order_of_operations.chai | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 unittests/order_of_operations.chai diff --git a/unittests/order_of_operations.chai b/unittests/order_of_operations.chai new file mode 100644 index 0000000..c07ce79 --- /dev/null +++ b/unittests/order_of_operations.chai @@ -0,0 +1,7 @@ + + +var s = "" + +s += to_string(fun[s](){ s += "3"; 3}() % fun[s](){ s += "2"; 2}()); + +assert_equal(s, "321");