Fix potential infinite loop condition

I was doing some testing with js-xlsx's test suite and ran into a test that was hanging.  Turns out it was cmparr()'s for-loop condition.  Switching from `!=` to `<` fixed the hung test and caused it to error correctly.
This commit is contained in:
TeamworkGuy2 2017-07-16 21:52:44 +00:00 committed by GitHub
parent 6a913d3a7b
commit d0df763657

@ -683,7 +683,7 @@ function custprop(wb) {
assert.equal(wb.Custprops.Counter, -3.14);
}
function cmparr(x){ for(var i=1;i!=x.length;++i) assert.deepEqual(x[0], x[i]); }
function cmparr(x){ for(var i=1; i<x.length; ++i) assert.deepEqual(x[0], x[i]); }
function deepcmp(x,y,k,m,c) {
var s = k.indexOf(".");