ChaiScript/unittests/3.x/if_else.chai
Jonathan Turner c73f16fdfe Fixing 4.x grammar to be backward compatible.
Added 3.x unit tests back to show this.
2012-05-17 10:14:50 -07:00

14 lines
144 B
ChaiScript

var i = 3
var b1 = false;
var b2 = false;
if (i == 2) {
b1 = true;
}
else {
b2 = true;
}
assert_equal(false, b1);
assert_equal(true, b2);