Update vendors.

Former-commit-id: 48e14b4b41c9b26382b09294127e552a794e49be
This commit is contained in:
John-David Dalton
2012-09-26 20:42:52 -07:00
parent 5311a0f903
commit 426ca78bf7
5 changed files with 65 additions and 61 deletions

View File

@@ -366,6 +366,15 @@ $(document).ready(function() {
var indexFor30 = _.sortedIndex(numbers, 30);
equal(indexFor30, 2, '30 should be inserted at index 2');
var objects = [{x: 10}, {x: 20}, {x: 30}, {x: 40}];
var iterator = function(obj){ return obj.x; };
strictEqual(_.sortedIndex(objects, {x: 25}, iterator), 2);
strictEqual(_.sortedIndex(objects, {x: 35}, 'x'), 3);
var context = {1: 2, 2: 3, 3: 4};
iterator = function(obj){ return this[obj]; };
strictEqual(_.sortedIndex([1, 3], 2, iterator, context), 1);
});
test('shuffle', function() {