Skip to content

Commit

Permalink
Merge pull request #2649 from wwwoodall/fix-typo
Browse files Browse the repository at this point in the history
Fix typo
  • Loading branch information
jashkenas committed Feb 9, 2017
2 parents d63c5f4 + 7cc2c6a commit 6611850
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/arrays.js
Expand Up @@ -324,7 +324,7 @@
numbers = [1, 40, 40, 40, 40, 40, 40, 40, 50, 60, 70]; num = 40;
assert.strictEqual(_.indexOf(numbers, num, true), 1, '40 is in the list');
assert.strictEqual(_.indexOf(numbers, 6, true), -1, '6 isnt in the list');
assert.strictEqual(_.indexOf([1, 2, 5, 4, 6, 7], 5, true), -1, 'sorted indexOf doesn\'t uses binary search');
assert.strictEqual(_.indexOf([1, 2, 5, 4, 6, 7], 5, true), -1, 'sorted indexOf doesn\'t use binary search');
assert.ok(_.every(['1', [], {}, null], function() {
return _.indexOf(numbers, num, {}) === 1;
}), 'non-nums as fromIndex make indexOf assume sorted');
Expand Down

0 comments on commit 6611850

Please sign in to comment.