From ee8a2480869f6cae2de9bf83ef985d99f450f11d Mon Sep 17 00:00:00 2001 From: John-David Dalton Date: Tue, 24 Nov 2015 08:13:11 -0800 Subject: [PATCH] Add large array test for `_.uniqBy` and `_.sortedUniqBy`. --- test/test.js | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/test/test.js b/test/test.js index 30e472407..38c5b628b 100644 --- a/test/test.js +++ b/test/test.js @@ -20979,6 +20979,19 @@ assert.deepEqual(actual, expected); }); + QUnit.test('should work with large arrays', function(assert) { + assert.expect(2); + + var largeArray = lodashStable.times(LARGE_ARRAY_SIZE, function() { + return [1, 2]; + }); + + var actual = func(largeArray, String); + + assert.deepEqual(actual, [[1, 2]]); + assert.strictEqual(actual[0], largeArray[0]); + }); + QUnit.test('`_.' + methodName + '` should provide the correct `iteratee` arguments', function(assert) { assert.expect(1);