ChaiScript/unittests/order_of_operations.chai
2015-07-24 11:49:23 -06:00

8 lines
108 B
ChaiScript

var s = ""
s += to_string(fun[s](){ s += "3"; 3}() % fun[s](){ s += "2"; 2}());
assert_equal(s, "321");