From 2ea08ccd368cceb645957f2f40d644394d8fde54 Mon Sep 17 00:00:00 2001 From: John-David Dalton Date: Thu, 21 Apr 2016 00:31:39 -0700 Subject: [PATCH] Add math operator method tests for symbols. --- test/test.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/test/test.js b/test/test.js index b30f86701..89380aa8e 100644 --- a/test/test.js +++ b/test/test.js @@ -20840,6 +20840,18 @@ }); }); + QUnit.test('`_.' + methodName + '` should convert symbols to `NaN`', function(assert) { + assert.expect(2); + + if (Symbol) { + assert.deepEqual(func(0, symbol), NaN); + assert.deepEqual(func(symbol, 0), NaN); + } + else { + skipAssert(assert, 2); + } + }); + QUnit.test('`_.' + methodName + '` should return an unwrapped value when implicitly chaining', function(assert) { assert.expect(1);