diff --git a/test/function/arithmetic/sqrt.test.js b/test/function/arithmetic/sqrt.test.js index 6c46ba737..d5fd39d86 100644 --- a/test/function/arithmetic/sqrt.test.js +++ b/test/function/arithmetic/sqrt.test.js @@ -70,7 +70,7 @@ describe('sqrt', function () { }) it('should return NaN if input is NaN', function () { - assert.strictEqual(sqrt(NaN), NaN) + assert(isNaN(sqrt(NaN))) }) it('should throw an error when used with a string', function () { diff --git a/test/function/matrix/partitionSelect.test.js b/test/function/matrix/partitionSelect.test.js index 01f6b9a46..83c149b47 100644 --- a/test/function/matrix/partitionSelect.test.js +++ b/test/function/matrix/partitionSelect.test.js @@ -66,11 +66,11 @@ describe('partitionSelect', function () { }) it('should return NaN if any of the inputs contains NaN', function () { - assert.strictEqual(partitionSelect([NaN], 0), NaN) - assert.strictEqual(partitionSelect([1, NaN], 0), NaN) - assert.strictEqual(partitionSelect([NaN, 1], 0), NaN) - assert.strictEqual(partitionSelect([1, 3, NaN], 1), NaN) - assert.strictEqual(partitionSelect([NaN, NaN, NaN], 1), NaN) + assert(isNaN(partitionSelect([NaN], 0))) + assert(isNaN(partitionSelect([1, NaN], 0))) + assert(isNaN(partitionSelect([NaN, 1], 0))) + assert(isNaN(partitionSelect([1, 3, NaN], 1))) + assert(isNaN(partitionSelect([NaN, NaN, NaN], 1))) }) it('should throw an error if called with a multi dimensional matrix', function () {