···11+// Generated by ReScript, PLEASE EDIT WITH CARE
22+33+import * as Test from "rescript-test/src/Test.mjs";
44+55+function intEqual(message, a, b) {
66+ Test.assertion(message, "Int equals", (function (a, b) {
77+ return a === b;
88+ }), a, b);
99+}
1010+1111+Test.test("add", (function () {
1212+ intEqual(undefined, 2, 2);
1313+ intEqual("1 + 2 === 3", 3, 3);
1414+ }));
1515+1616+export {
1717+ intEqual ,
1818+}
1919+/* Not a pure module */
+9
tests/SExpTest.res
···11+open Test
22+33+let intEqual = (~message=?, a: int, b: int) =>
44+ assertion(~message?, ~operator="Int equals", (a, b) => a === b, a, b)
55+66+test("add", () => {
77+ intEqual(1 + 1, 2)
88+ intEqual(~message="1 + 2 === 3", 1 + 2, 3)
99+})