mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-10 19:07:49 +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() {
|
test('should coerce arguments to numbers', 1, function() {
|
||||||
var actual = [func('0',1), func('1'), func(0, 1, '1')];
|
var actual = [func('0',1), func('1'), func(0, 1, '1'), func(NaN), func(NaN, NaN)];
|
||||||
deepEqual(actual, [[0], [0], [0]]);
|
deepEqual(actual, [[0], [0], [0], [], []]);
|
||||||
});
|
});
|
||||||
}());
|
}());
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user