Base85 improvements

This commit is contained in:
John L 2022-06-14 10:23:13 +01:00
parent 54fdc05e3a
commit 906727f133
5 changed files with 88 additions and 4 deletions

View file

@ -84,7 +84,18 @@ class TestRegister {
if (result.error) {
if (test.expectedError) {
ret.status = "passing";
if (result.error.displayStr === test.expectedOutput) {
ret.status = "passing";
} else {
console.log(result);
ret.status = "failing";
ret.output = [
"Expected",
"\t" + test.expectedOutput.replace(/\n/g, "\n\t"),
"Received",
"\t" + result.error.displayStr.replace(/\n/g, "\n\t"),
].join("\n");
}
} else {
ret.status = "erroring";
ret.output = result.error.displayStr;