mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-01 23:57:49 +00:00
lodash: Sync with Underscore.js. [jddalton]
Former-commit-id: 48fe9e5bdfef0d9fe214f38968e7dd0998505ac7
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user