test: refactoring test, reordering arguments

Refactors the test-buffer-inheritance.js test, switches the order of the
arguments to be: 'actual', 'expected'

PR-URL: https://github.com/nodejs/node/pull/28343
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Yongsheng Zhang <zyszys98@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
This commit is contained in:
David Sánchez 2019-06-21 16:02:27 -05:00 committed by ZYSzys
parent a10962187f
commit 945134361f

View File

@ -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();