mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-08 18:17:48 +00:00
Remove test which will now lock up _.times.
This commit is contained in:
@@ -10151,11 +10151,6 @@
|
|||||||
QUnit.module('lodash.times');
|
QUnit.module('lodash.times');
|
||||||
|
|
||||||
(function() {
|
(function() {
|
||||||
test('should rollover large `n` values', 1, function() {
|
|
||||||
var actual = _.times(Math.pow(2, 32) + 1);
|
|
||||||
deepEqual(actual, [0]);
|
|
||||||
});
|
|
||||||
|
|
||||||
test('should coerce non-finite `n` values to `0`', 3, function() {
|
test('should coerce non-finite `n` values to `0`', 3, function() {
|
||||||
_.each([-Infinity, NaN, Infinity], function(n) {
|
_.each([-Infinity, NaN, Infinity], function(n) {
|
||||||
deepEqual(_.times(n), []);
|
deepEqual(_.times(n), []);
|
||||||
|
|||||||
Reference in New Issue
Block a user