From 076e4e6db538a20370965f2eea4bbdd595fde3fa Mon Sep 17 00:00:00 2001 From: John-David Dalton Date: Thu, 21 Apr 2016 01:00:43 -0700 Subject: [PATCH] Add math operator method tests for objects. --- test/test.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/test/test.js b/test/test.js index 89380aa8e..15c83081d 100644 --- a/test/test.js +++ b/test/test.js @@ -20840,6 +20840,13 @@ }); }); + QUnit.test('`_.' + methodName + '` should convert objects to `NaN`', function(assert) { + assert.expect(2); + + assert.deepEqual(func(0, {}), NaN); + assert.deepEqual(func({}, 0), NaN); + }); + QUnit.test('`_.' + methodName + '` should convert symbols to `NaN`', function(assert) { assert.expect(2);