Espruino/tests/test_interrupt_3.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

12 lines
153 B
JavaScript

// test that interrupt works 3
var result = -5;
for(j=0;j<10;j++) {
i=0;
while (i++ < 10) {
result++;
if (i>5) interrupt();
}
}
result=0;