diff options
author | Louis Pilfold <louis@lpil.uk> | 2019-03-17 14:34:07 +0000 |
---|---|---|
committer | Louis Pilfold <louis@lpil.uk> | 2019-03-17 14:34:07 +0000 |
commit | 00ff9767dc61e698aac791b43704cfce1ab33600 (patch) | |
tree | 257392f879a3524b04043e5385ca1ba871aa6908 /src/expect.gleam | |
parent | de6dca34edf5ab52bc7eab02745c59d8c0dd777d (diff) | |
download | gleam_stdlib-00ff9767dc61e698aac791b43704cfce1ab33600.tar.gz gleam_stdlib-00ff9767dc61e698aac791b43704cfce1ab33600.zip |
stdlib atom
Diffstat (limited to 'src/expect.gleam')
-rw-r--r-- | src/expect.gleam | 4 |
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) } |