Skip to content

Commit 72ff7d1

Browse files
lahmaptomato
authored andcommitted
Add names for expected outcomes in compareArray.js
1 parent 0c784ef commit 72ff7d1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

harness/compareArray.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -37,14 +37,14 @@ assert.compareArray = function(actual, expected, message) {
3737
message = message.toString();
3838
}
3939

40-
assert(actual != null, `First argument shouldn't be nullish. ${message}`);
41-
assert(expected != null, `Second argument shouldn't be nullish. ${message}`);
40+
assert(actual != null, `Actual argument shouldn't be nullish. ${message}`);
41+
assert(expected != null, `Expected argument shouldn't be nullish. ${message}`);
4242
var format = compareArray.format;
4343
var result = compareArray(actual, expected);
4444

4545
// The following prevents actual and expected from being iterated and evaluated
4646
// more than once unless absolutely necessary.
4747
if (!result) {
48-
assert(false, `Expected ${format(actual)} and ${format(expected)} to have the same contents. ${message}`);
48+
assert(false, `Actual ${format(actual)} and expected ${format(expected)} should have the the same contents. ${message}`);
4949
}
5050
};

0 commit comments

Comments
 (0)