Skip to content

Commit

Permalink
Update test output
Browse files Browse the repository at this point in the history
  • Loading branch information
fhammerschmidt committed Apr 2, 2024
1 parent 72babc2 commit de5d4de
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/Core__BigInt.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ function toInt(t) {
return Number(t) | 0;
}

function exp(x, y) {
return (x ** y);
function lnot(x) {
return x ^ -1n;
}

export {
toInt ,
exp ,
lnot ,
}
/* No side effect */
3 changes: 2 additions & 1 deletion test/TempTests.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import * as Core__Int from "../src/Core__Int.mjs";
import * as IntlTests from "./intl/IntlTests.mjs";
import * as Core__Dict from "../src/Core__Dict.mjs";
import * as Core__JSON from "../src/Core__JSON.mjs";
import * as Caml_bigint from "rescript/lib/es6/caml_bigint.js";
import * as Caml_option from "rescript/lib/es6/caml_option.js";
import * as Core__Array from "../src/Core__Array.mjs";
import * as Core__Float from "../src/Core__Float.mjs";
Expand Down Expand Up @@ -143,7 +144,7 @@ console.info("BigInt");

console.info("---");

console.log(BigInt(1) / BigInt(12.0));
console.log(Caml_bigint.div(BigInt(1), BigInt(12.0)));

console.info("");

Expand Down

0 comments on commit de5d4de

Please sign in to comment.