@@ -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