Add test for order of operations
This commit is contained in:
parent
3cae2aed1d
commit
b3d2350f33
7
unittests/order_of_operations.chai
Normal file
7
unittests/order_of_operations.chai
Normal file
@ -0,0 +1,7 @@
|
||||
|
||||
|
||||
var s = ""
|
||||
|
||||
s += to_string(fun[s](){ s += "3"; 3}() % fun[s](){ s += "2"; 2}());
|
||||
|
||||
assert_equal(s, "321");
|
Loading…
x
Reference in New Issue
Block a user