summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--test/13_drhtz-drhfz.js24
1 files changed, 21 insertions, 3 deletions
diff --git a/test/13_drhtz-drhfz.js b/test/13_drhtz-drhfz.js
index a623d54..c6b5d61 100644
--- a/test/13_drhtz-drhfz.js
+++ b/test/13_drhtz-drhfz.js
@@ -47,7 +47,13 @@ describe("drhtz() and drhfz()", function() {
];
tests.forEach(function(test) {
test.slice(3).forEach(function(f) {
- assert.equal(f(test[0], test[1]), test[2]);
+ it("correctly round " + test[0] +
+ " with precision " + test[1] + " to " +
+ test[2], function() {
+ assert.equal(
+ f(test[0], test[1]),
+ test[2]);
+ });
});
});
});
@@ -65,7 +71,13 @@ describe("drhtz() and drhfz()", function() {
];
tests.forEach(function(test) {
test.slice(3).forEach(function(f) {
- assert.equal(f(test[0], test[1]), test[2]);
+ it("correctly round " + test[0] +
+ " with precision " + test[1] + " to " +
+ test[2], function() {
+ assert.equal(
+ f(test[0], test[1]),
+ test[2]);
+ });
});
});
});
@@ -76,7 +88,13 @@ describe("drhtz() and drhfz()", function() {
];
tests.forEach(function(test) {
test.slice(3).forEach(function(f) {
- assert.equal(f(test[0], test[1]), test[2]);
+ it("correctly round " + test[0] +
+ " with precision " + test[1] + " to " +
+ test[2], function() {
+ assert.equal(
+ f(test[0], test[1]),
+ test[2]);
+ });
});
});
});