diff --git a/test/test.js b/test/test.js index b436753a6..76a066b97 100644 --- a/test/test.js +++ b/test/test.js @@ -9358,6 +9358,12 @@ }); }); + test('should work with `start` >= `end`', 2, function() { + _.each([2, 3], function(start) { + deepEqual(_.slice(array, start, 2), []); + }); + }); + test('should work with a positive `end`', 1, function() { deepEqual(_.slice(array, 0, 1), [1]); });