From 24cdfb90a7d8a42e99b1ea7016a0d7eab5e1ffa2 Mon Sep 17 00:00:00 2001 From: Pavel Panchekha Date: Mon, 11 Aug 2014 17:30:41 -0700 Subject: [PATCH] Added test to test for numerical issues just fixed --- test/function/arithmetic/sqrt.test.js | 1 + 1 file changed, 1 insertion(+) diff --git a/test/function/arithmetic/sqrt.test.js b/test/function/arithmetic/sqrt.test.js index 6e22d9924..98b2e7417 100644 --- a/test/function/arithmetic/sqrt.test.js +++ b/test/function/arithmetic/sqrt.test.js @@ -49,6 +49,7 @@ describe('sqrt', function() { it('should return the square root of a complex number', function() { assert.deepEqual(sqrt(math.complex(3, -4)), math.complex(2, -1)); + assert.deepEqual(sqrt(math.complex(1e10, 1e-10)), math.complex(1e5, 5e-16)); }); it('should throw an error when used with a unit', function() {