runUnitTests static method
void
runUnitTests()
Implementation
static void runUnitTests() {
testValidParse('pi < 4');
testValidParse('(pi < 4)');
testValidParse('if true then 20 else 30');
testValidParse('f = function(x)\nreturn x*3\nend function\nf(14)');
testValidParse('foo="bar"\nindexes(foo*2)\nfoo.indexes');
testValidParse('x=[]\nx.push(42)');
testValidParse('list1=[10, 20, 30, 40, 50]; range(0, list1.len)');
testValidParse(
'f = function(x); print("foo"); end function; print(false and f)');
testValidParse('print 42');
testValidParse('print true');
testValidParse('f = function(x)\nprint x\nend function\nf 42');
testValidParse('myList = [1, null, 3]');
testValidParse(
'while true; if true then; break; else; print 1; end if; end while');
testValidParse('x = 0 or\n1');
testValidParse('x = [1, 2, \n 3]');
testValidParse('range 1,\n10, 2');
}