diff options
author | P. J. McDermott <pj@pehjota.net> | 2017-01-06 21:55:12 (EST) |
---|---|---|
committer | P. J. McDermott <pj@pehjota.net> | 2017-01-06 21:55:12 (EST) |
commit | 06073f700d2b1c1c030f58e954b1f849fa54a1c2 (patch) | |
tree | 903bd8775cd32e7ae6c0da7728d6ca1a3135c01b /test | |
parent | ffbeff04fd278ccec60a25535afd565832f0747a (diff) | |
download | decmath.js-06073f700d2b1c1c030f58e954b1f849fa54a1c2.zip decmath.js-06073f700d2b1c1c030f58e954b1f849fa54a1c2.tar.gz decmath.js-06073f700d2b1c1c030f58e954b1f849fa54a1c2.tar.bz2 |
test/10_dadd.js: Add more tests
Diffstat (limited to 'test')
-rw-r--r-- | test/10_dadd.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/10_dadd.js b/test/10_dadd.js index 9758964..e182ee2 100644 --- a/test/10_dadd.js +++ b/test/10_dadd.js @@ -38,9 +38,15 @@ describe("dadd()", function() { [ 2 , 2 , "4." ], [ 1 , 0.23, "1.23"], [ 0.23, 1 , "1.23"], + [ 1 , -1 , "0." ], + [-1 , 1 , "0." ], [ 1.23, 4.56, "5.79"], [-1.23, 4.56, "3.33"], [-1.23, -4.56, "-5.79"], + [ 0.1 , 0.1 , ".2" ], + [-0.1 , -0.1 , "-.2" ], + [ 0.1 , -0.1 , ".0" ], + [-0.1 , 0.1 , ".0" ], [ 9.95, 0.52, "10.47"], ]; tests.forEach(function(test) { |