Espruino/tests/test_bug_parse_error.js
Michael Duerinckx 7f5308590b Rename numbered tests to something more descriptive - closes #16
test077 is the only one I really couldn't figure out what it was meant
to test.
2014-03-01 22:15:28 +00:00

25 lines
456 B
JavaScript

// Random parsing error that we came across...
var A1 = 1;
var A2 = 2;
var A3 = 3;
function bar(a,b) {
}
var a = 0;
function foo() {
if (a==0) bar([A1, A2, A3], 0b100);
if (a==1) bar([A1, A2, A3], 0b101);
if (a==2) bar([A1, A2, A3], 0b001);
if (a==3) bar([A1, A2, A3], 0b011);
if (a==4) bar([A1, A2, A3], 0b010);
if (a==5) bar([A1, A2, A3], 0b110);
if (a==6) bar([A1, A2, A3], 0b111);
if (a==7) bar([A1, A2, A3], 0b000);
result = 1;
}
foo();