aboutsummaryrefslogtreecommitdiff
path: root/src/expect.gleam
diff options
context:
space:
mode:
Diffstat (limited to 'src/expect.gleam')
-rw-r--r--src/expect.gleam4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/expect.gleam b/src/expect.gleam
index a597d9a..5ea6a93 100644
--- a/src/expect.gleam
+++ b/src/expect.gleam
@@ -11,6 +11,10 @@ pub external fn true(Bool) -> Expectation = "gleam__stdlib" "expect_true";
pub external fn false(Bool) -> Expectation = "gleam__stdlib" "expect_false";
+pub external fn is_ok(Result(a, b)) -> Expectation = "gleam__stdlib" "expect_is_ok";
+
+pub external fn is_error(Result(a, b)) -> Expectation = "gleam__stdlib" "expect_is_error";
+
pub fn fail() {
true(False)
}