js-cuint
js-cuint copied to clipboard
Some tests fail on x86_64 (amd64) architecture
12 tests are failing for v0.2.2:
224 passing (138ms)
12 failing
1) add method
overflow
should return n:
AssertionError [ERR_ASSERTION]: 4294967294 == -2
+ expected - actual
-4294967294
+-2
at Context.<anonymous> (test/UINT32_add-test.js:92:14)
2) negate method
1
should return -1:
AssertionError [ERR_ASSERTION]: 4294967295 == -1
+ expected - actual
-4294967295
+-1
at Context.<anonymous> (test/UINT32_negate-test.js:22:14)
3) negate method
low bit
should return -n:
AssertionError [ERR_ASSERTION]: 4294967293 == -3
+ expected - actual
-4294967293
+-3
at Context.<anonymous> (test/UINT32_negate-test.js:33:14)
4) negate method
high bit
should return -n:
AssertionError [ERR_ASSERTION]: 4294836224 == -131072
+ expected - actual
-4294836224
+-131072
at Context.<anonymous> (test/UINT32_negate-test.js:45:14)
5) subtract method
0-1
should return -1:
AssertionError [ERR_ASSERTION]: 4294967295 == -1
+ expected - actual
-4294967295
+-1
at Context.<anonymous> (test/UINT32_subtract-test.js:33:14)
6) subtract method
low bit-high bit
should return 0:
AssertionError [ERR_ASSERTION]: 4294836225 == -131071
+ expected - actual
-4294836225
+-131071
at Context.<anonymous> (test/UINT32_subtract-test.js:45:14)
7) add method
overflow
should return n:
AssertionError [ERR_ASSERTION]: 4294967294 == -2
+ expected - actual
-4294967294
+-2
at Context.<anonymous> (test/UINT64_add-test.js:92:14)
8) negate method
1
should return -1:
AssertionError [ERR_ASSERTION]: 4294967295 == -1
+ expected - actual
-4294967295
+-1
at Context.<anonymous> (test/UINT64_negate-test.js:22:14)
9) negate method
low bit
should return -n:
AssertionError [ERR_ASSERTION]: 4294967293 == -3
+ expected - actual
-4294967293
+-3
at Context.<anonymous> (test/UINT64_negate-test.js:33:14)
10) negate method
high bit
should return -n:
AssertionError [ERR_ASSERTION]: 4294836224 == -131072
+ expected - actual
-4294836224
+-131072
at Context.<anonymous> (test/UINT64_negate-test.js:45:14)
11) subtract method
0-1
should return -1:
AssertionError [ERR_ASSERTION]: 4294967295 == -1
+ expected - actual
-4294967295
+-1
at Context.<anonymous> (test/UINT64_subtract-test.js:33:14)
12) subtract method
low bit-high bit
should return 0:
AssertionError [ERR_ASSERTION]: 4294836225 == -131071
+ expected - actual
-4294836225
+-131071
at Context.<anonymous> (test/UINT64_subtract-test.js:45:14)
Cutting the trace short. Please let me know should you need additional information.