Added 'DishError' and refined test results.

This commit is contained in:
n1474335 committed 2018-12-25 22:38:53 +00:00
1 parent d2325306db
commit b29bb6fdd7
7 files changed
+117 -77

No files matched your search

+3 -2
View File
@@ -77,7 +77,7 @@ import "./tests/operations/SetUnion";
import "./tests/operations/StrUtils";
import "./tests/operations/SymmetricDifference";
import "./tests/operations/TextEncodingBruteForce";
import "./tests/operations/ToGeohash.mjs";
import "./tests/operations/ToGeohash";
import "./tests/operations/TranslateDateTimeFormat";
import "./tests/operations/Magic";
import "./tests/operations/ParseTLV";
@@ -155,7 +155,8 @@ TestRegister.runTests()
}
if (!allTestsPassing) {
console.log("\nNot all tests are passing");
console.log("\nFailing tests:\n");
results.filter(r => r.status !== "passing").forEach(handleTestResult);
}
process.exit(allTestsPassing ? 0 : 1);
+2 -2
View File
@@ -334,8 +334,8 @@ TestRegister.addTests([
},
{
name: "To MessagePack: no content",
input: "",
expectedError: true,
input: "{}",
expectedMatch: /Unexpected end of JSON input/,
recipeConfig: [
{
"op": "To MessagePack",