summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorP. J. McDermott <pj@pehjota.net>2017-01-05 17:39:07 (EST)
committer P. J. McDermott <pj@pehjota.net>2017-01-05 17:39:07 (EST)
commit9e647c9dfb12c820b5a66d033d3a42b6377fcd65 (patch)
treecf2d1fb96221808feb9fb09aee16d126bea1db74
parent336a1a26c561f5f328405e59b1126826676823f3 (diff)
downloadMath-Decimal-FastPP-9e647c9dfb12c820b5a66d033d3a42b6377fcd65.zip
Math-Decimal-FastPP-9e647c9dfb12c820b5a66d033d3a42b6377fcd65.tar.gz
Math-Decimal-FastPP-9e647c9dfb12c820b5a66d033d3a42b6377fcd65.tar.bz2
t/10_dadd.t: Add three tests to improve coverage
dadd() now has 100% test coverage.
-rw-r--r--t/10_dadd.t13
1 files changed, 8 insertions, 5 deletions
diff --git a/t/10_dadd.t b/t/10_dadd.t
index 256fc12..4740a4a 100644
--- a/t/10_dadd.t
+++ b/t/10_dadd.t
@@ -28,11 +28,14 @@ my $c;
my $i;
@tests = (
- # a b c
- [ 1.23, 4.56, 5.79],
- [-1.23, 4.56, 3.33],
- [-1.23, -4.56, -5.79],
- [ 9.95, 0.52, 10.47],
+ # a b c
+ [ 2 , 2 , "4." ],
+ [ 1 , 0.23, "1.23"],
+ [ 0.23, 1 , "1.23"],
+ [ 1.23, 4.56, "5.79"],
+ [-1.23, 4.56, "3.33"],
+ [-1.23, -4.56, "-5.79"],
+ [ 9.95, 0.52, "10.47"],
);
plan("tests" => scalar(@tests) + 1);