From 06073f700d2b1c1c030f58e954b1f849fa54a1c2 Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Fri, 06 Jan 2017 21:55:12 -0500 Subject: test/10_dadd.js: Add more tests --- 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) { -- cgit v0.9.1