Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit f803d6c

Browse filesBrowse files
lpincaaduh95
authored andcommitted
test: swap assert.strictEqual() parameters
The `actual` and the `expected` parameters are respectively the first and the second. PR-URL: #57217 Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com> Reviewed-By: Chemi Atlow <chemi@atlow.co.il> Reviewed-By: James M Snell <jasnell@gmail.com>
1 parent eb3576f commit f803d6c
Copy full SHA for f803d6c

File tree

Expand file treeCollapse file tree

1 file changed

+4
-4
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+4
-4
lines changed
Open diff view settings
Collapse file

‎test/parallel/test-buffer-bigint64.js‎

Copy file name to clipboardExpand all lines: test/parallel/test-buffer-bigint64.js
+4-4Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,23 +9,23 @@ const buf = Buffer.allocUnsafe(9);
99
let val = 123456789n;
1010
buf[`writeBigInt64${endianness}`](val, 0);
1111
let rtn = buf[`readBigInt64${endianness}`](0);
12-
assert.strictEqual(val, rtn);
12+
assert.strictEqual(rtn, val);
1313

1414
// Should allow INT64_MAX to be written and read
1515
val = 0x7fffffffffffffffn;
1616
buf[`writeBigInt64${endianness}`](val, 0);
1717
rtn = buf[`readBigInt64${endianness}`](0);
18-
assert.strictEqual(val, rtn);
18+
assert.strictEqual(rtn, val);
1919

2020
// Should read and write a negative signed 64-bit integer
2121
val = -123456789n;
2222
buf[`writeBigInt64${endianness}`](val, 0);
23-
assert.strictEqual(val, buf[`readBigInt64${endianness}`](0));
23+
assert.strictEqual(buf[`readBigInt64${endianness}`](0), val);
2424

2525
// Should read and write an unsigned 64-bit integer
2626
val = 123456789n;
2727
buf[`writeBigUInt64${endianness}`](val, 0);
28-
assert.strictEqual(val, buf[`readBigUInt64${endianness}`](0));
28+
assert.strictEqual(buf[`readBigUInt64${endianness}`](0), val);
2929

3030
assert.strictEqual(buf[`writeBigUInt64${endianness}`](val, 0), 8);
3131
assert.strictEqual(buf[`writeBigInt64${endianness}`](val, 0), 8);

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.