mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-02 08:07:50 +00:00
Add _.range tests for NaN values for start and end arguments.
This commit is contained in:
@@ -6641,8 +6641,8 @@
|
||||
});
|
||||
|
||||
test('should coerce arguments to numbers', 1, function() {
|
||||
var actual = [func('0',1), func('1'), func(0, 1, '1')];
|
||||
deepEqual(actual, [[0], [0], [0]]);
|
||||
var actual = [func('0',1), func('1'), func(0, 1, '1'), func(NaN), func(NaN, NaN)];
|
||||
deepEqual(actual, [[0], [0], [0], [], []]);
|
||||
});
|
||||
}());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user