Espruino/tests/test031.js
Gordon Williams f3d6e0bc83 First commit
2013-09-26 14:39:04 +01:00

6 lines
120 B
JavaScript

// test for string split
var b = "1,4,7";
var a = b.split(",");
result = a.length==3 && a[0]==1 && a[1]==4 && a[2]==7;