Skip to content
Snippets Groups Projects
Unverified Commit abac4e0b authored by Daniel Ehrenberg's avatar Daniel Ehrenberg Committed by Leo Balter
Browse files

Fix up compareArray

parent 6ee183a0
No related branches found
No related tags found
No related merge requests found
......@@ -14,16 +14,6 @@ function compareArray(a, b) {
}
assert.compareArray = function(actual, expected, message) {
if (compareArray(actual, expected)) return;
if (message === undefined) {
message = '';
} else {
message += ' ';
}
message += 'Expected SameValue(«' + String(actual) + '», «' + String(expected) + '») to be true';
$ERROR(`${message}${message === undefined ? '' : ' '}Expected the arrays [${actual}] to have the same contents as [${expected}]`);
assert(compareArray(actual, expected),
`Expected [${actual.join(", ")}] and [${expected.join(", ")}] to have the same contents. ${message}`);
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment