Added test to test for numerical issues just fixed

This commit is contained in:
Pavel Panchekha 2014-08-11 17:30:41 -07:00
parent d274a50cbf
commit 24cdfb90a7

View File

@ -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() {