diff --git a/test/test.js b/test/test.js index 8f618fd0d..e20b3077b 100644 --- a/test/test.js +++ b/test/test.js @@ -6101,9 +6101,14 @@ array = Array(length), steps = 0; - array[index] = index; - _.sortedIndex(array, index, function() { steps++; }); - equal(steps, 33); + if (array.length == length) { + array[index] = index; + _.sortedIndex(array, index, function() { steps++; }); + equal(steps, 33); + } + else { + skipTest(); + } }); }());