Add _.range tests for NaN values for start and end arguments.

This commit is contained in:
John-David Dalton
2014-03-12 00:30:01 -07:00
parent 029aac8059
commit a40748e3aa

View File

@@ -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], [], []]);
});
}());