diff options
-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) { |