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

8 lines
91 B
JavaScript

// test of for .. in
var z=0;
var b = [10,20,12];
for (a in b) z+= b[a];
result = z==42;