Skip to content

Commit 7abfaa0

Browse files
😒 chore(dev-deps): Upgrade xo.
1 parent 838d5fe commit 7abfaa0

File tree

6 files changed

+333
-461
lines changed

6 files changed

+333
-461
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@
9999
"nyc": "15.1.0",
100100
"power-assert": "1.6.1",
101101
"regenerator-runtime": "0.13.7",
102-
"xo": "0.33.1"
102+
"xo": "0.34.1"
103103
},
104104
"files": [
105105
"lib"

test/src/api/sortFloat32.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ test(macro, []);
2929
test(macro, [1.25, -2.5, -3.125, 4.375]);
3030

3131
const N = 1 << 17;
32-
const longShuffledInput = list(range((-N / 2) | 0, (N / 2) | 0));
32+
const longShuffledInput = list(range(Math.trunc(-N / 2), Math.trunc(N / 2)));
3333
shuffle(longShuffledInput, 0, N);
3434
test(macro, longShuffledInput);
3535

test/src/api/sortInt16.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ test(macro, [1, -2, -3, 4]);
2323

2424
const N = 1 << 17;
2525
const longShuffledInput = list(
26-
Int16Array.from(range((-N / 2) | 0, (N / 2) | 0))
26+
Int16Array.from(range(Math.trunc(-N / 2), Math.trunc(N / 2)))
2727
);
2828
shuffle(longShuffledInput, 0, N);
2929
test(macro, longShuffledInput);

test/src/api/sortInt32.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ test(macro, []);
2222
test(macro, [1, -2, -3, 4]);
2323

2424
const N = 1 << 17;
25-
const longShuffledInput = list(range((-N / 2) | 0, (N / 2) | 0));
25+
const longShuffledInput = list(range(Math.trunc(-N / 2), Math.trunc(N / 2)));
2626
shuffle(longShuffledInput, 0, N);
2727
test(macro, longShuffledInput);
2828

test/src/api/sortInt8.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ test(macro, [1, -2, -3, 4]);
2323

2424
const N = 1 << 17;
2525
const longShuffledInput = list(
26-
Int8Array.from(range((-N / 2) | 0, (N / 2) | 0))
26+
Int8Array.from(range(Math.trunc(-N / 2), Math.trunc(N / 2)))
2727
);
2828
shuffle(longShuffledInput, 0, N);
2929
test(macro, longShuffledInput);

0 commit comments

Comments
 (0)