Skip to content

Commit

Permalink
test: refactoring test, reordering arguments
Browse files Browse the repository at this point in the history
Refactors the test-buffer-inheritance.js test, switches the order of the
arguments to be: 'actual', 'expected'

PR-URL: #28343
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Rich Trott <[email protected]>
Reviewed-By: Yongsheng Zhang <[email protected]>
Reviewed-By: Ruben Bridgewater <[email protected]>
Reviewed-By: Trivikram Kamat <[email protected]>
Reviewed-By: James M Snell <[email protected]>
  • Loading branch information
d4vsanchez authored and targos committed Jul 2, 2019
1 parent e63990e commit d88c697
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/parallel/test-buffer-inheritance.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ vals.forEach(function(t) {
let cntr = 0;
for (let i = 0; i < t.length; i++)
cntr += t[i];
assert.strictEqual(t.length * 5, cntr);
assert.strictEqual(cntr, t.length * 5);

// Check this does not throw
t.toString();
Expand Down

0 comments on commit d88c697

Please sign in to comment.