lodash: Sync with Underscore.js. [jddalton]

Former-commit-id: 48fe9e5bdfef0d9fe214f38968e7dd0998505ac7
This commit is contained in:
John-David Dalton
2012-04-23 23:40:14 -04:00
parent aebc8bda4d
commit a56a7e82bd

View File

@@ -258,11 +258,11 @@ $(document).ready(function() {
test('collections: sortedIndex', function() {
var numbers = [10, 20, 30, 40, 50], num = 35;
var index = _.sortedIndex(numbers, num);
equal(index, 3, '35 should be inserted at index 3');
var indexForNum = _.sortedIndex(numbers, num);
equal(indexForNum, 3, '35 should be inserted at index 3');
var index2 = _.sortedIndex(numbers, 30);
equal(index2, 2, '30 should be inserted at index 2');
var indexFor30 = _.sortedIndex(numbers, 30);
equal(indexFor30, 2, '30 should be inserted at index 2');
});
test('collections: shuffle', function() {