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:
parent
6a913d3a7b
commit
d0df763657
2
test.js
2
test.js
@ -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(".");
|
||||
|
Loading…
Reference in New Issue
Block a user