From a6cb6d26a4a89bb08d06c6d423709220c59bf31b Mon Sep 17 00:00:00 2001 From: John-David Dalton Date: Tue, 15 Dec 2015 20:37:43 -0800 Subject: [PATCH] Add `_.split` test for `limit`. --- test/test.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/test.js b/test/test.js index 62297b5af..f7921ff60 100644 --- a/test/test.js +++ b/test/test.js @@ -17619,11 +17619,12 @@ (function() { QUnit.test('should support string split', function(assert) { - assert.expect(2); + assert.expect(3); var string = 'abcde'; assert.deepEqual(_.split(string, 'c'), ['ab', 'de']); assert.deepEqual(_.split(string, /[bd]/), ['a', 'c', 'e']); + assert.deepEqual(_.split(string, '', 2), ['a', 'b']); }); QUnit.test('should allow mixed string and array prototype methods', function(assert) {