mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-01 15:57:48 +00:00
Update _.toInteger test to ensure proper rounding.
This commit is contained in:
@@ -18494,7 +18494,7 @@
|
||||
assert.expect(6);
|
||||
|
||||
assert.strictEqual(_.toInteger(-5.6), -5);
|
||||
assert.strictEqual(_.toInteger('3.14'), 3);
|
||||
assert.strictEqual(_.toInteger('5.6'), 5);
|
||||
assert.strictEqual(_.toInteger(), 0);
|
||||
assert.strictEqual(_.toInteger(NaN), 0);
|
||||
assert.strictEqual(_.toInteger(Infinity), MAX_INTEGER);
|
||||
|
||||
Reference in New Issue
Block a user