Add _.split test for limit.

This commit is contained in:
John-David Dalton
2015-12-15 20:37:43 -08:00
parent 003a5981d6
commit a6cb6d26a4

View File

@@ -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) {