Skip to content

Commit 68a9bb4

Browse files
committed
Adapt core error test.
1 parent 3000fd4 commit 68a9bb4

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

tests/tests/src/core/Core_ErrorTests.mjs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
import * as Exn from "rescript/lib/es6/Exn.js";
44
import * as Test from "./Test.mjs";
55
import * as Pervasives from "rescript/lib/es6/Pervasives.js";
6-
import * as Primitive_object from "rescript/lib/es6/Primitive_object.js";
76
import * as Primitive_exceptions from "rescript/lib/es6/Primitive_exceptions.js";
87

98
function panicTest() {
@@ -26,7 +25,7 @@ function panicTest() {
2625
43
2726
],
2827
"Should resolve test"
29-
], caught, Primitive_object.equal, "Panic! uh oh");
28+
], caught, (prim0, prim1) => prim0 === prim1, "Panic! uh oh");
3029
}
3130

3231
panicTest();

tests/tests/src/core/Core_ErrorTests.res

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ let panicTest = () => {
33
| Exn.Error(err) => Error.message(err)
44
}
55

6-
Test.run(__POS_OF__("Should resolve test"), caught, \"==", Some("Panic! uh oh"))
6+
Test.run(__POS_OF__("Should resolve test"), caught, \"===", Some("Panic! uh oh"))
77
}
88

99
panicTest()

0 commit comments

Comments
 (0)