A module for testing your Gleam code. The functions found here are compatible with the Erlang eunit test framework.

More information on running eunit can be found in the rebar3 documentation.


pub fn be_error(a: Result(a, b)) -> b
pub fn be_false(actual: Bool) -> Nil
pub fn be_none(a: Option(a)) -> Nil
pub fn be_ok(a: Result(a, b)) -> a
pub fn be_some(a: Option(a)) -> a
pub fn be_true(actual: Bool) -> Nil
pub fn equal(a: a, b: a) -> Nil
pub fn fail() -> Nil
pub fn not_equal(a: a, b: a) -> Nil
Search Document