Skip to content

Commit 23d3d2c

Browse files
Update test output
1 parent 9f6e596 commit 23d3d2c

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

src/Core__BigInt.mjs

+3-3
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@ function toInt(t) {
55
return Number(t) | 0;
66
}
77

8-
function exp(x, y) {
9-
return (x ** y);
8+
function lnot(x) {
9+
return x ^ -1n;
1010
}
1111

1212
export {
1313
toInt ,
14-
exp ,
14+
lnot ,
1515
}
1616
/* No side effect */

test/TempTests.mjs

+2-1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import * as Core__Int from "../src/Core__Int.mjs";
44
import * as IntlTests from "./intl/IntlTests.mjs";
55
import * as Core__Dict from "../src/Core__Dict.mjs";
66
import * as Core__JSON from "../src/Core__JSON.mjs";
7+
import * as Caml_bigint from "rescript/lib/es6/caml_bigint.js";
78
import * as Caml_option from "rescript/lib/es6/caml_option.js";
89
import * as Core__Array from "../src/Core__Array.mjs";
910
import * as Core__Float from "../src/Core__Float.mjs";
@@ -143,7 +144,7 @@ console.info("BigInt");
143144

144145
console.info("---");
145146

146-
console.log(BigInt(1) / BigInt(12.0));
147+
console.log(Caml_bigint.div(BigInt(1), BigInt(12.0)));
147148

148149
console.info("");
149150

0 commit comments

Comments
 (0)