mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-10 02:47:50 +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() {
|
test('collections: sortedIndex', function() {
|
||||||
var numbers = [10, 20, 30, 40, 50], num = 35;
|
var numbers = [10, 20, 30, 40, 50], num = 35;
|
||||||
var index = _.sortedIndex(numbers, num);
|
var indexForNum = _.sortedIndex(numbers, num);
|
||||||
equal(index, 3, '35 should be inserted at index 3');
|
equal(indexForNum, 3, '35 should be inserted at index 3');
|
||||||
|
|
||||||
var index2 = _.sortedIndex(numbers, 30);
|
var indexFor30 = _.sortedIndex(numbers, 30);
|
||||||
equal(index2, 2, '30 should be inserted at index 2');
|
equal(indexFor30, 2, '30 should be inserted at index 2');
|
||||||
});
|
});
|
||||||
|
|
||||||
test('collections: shuffle', function() {
|
test('collections: shuffle', function() {
|
||||||
|
|||||||
Reference in New Issue
Block a user