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 external type Expectation


pub external fn be_error(Result(a, b)) -> Expectation
pub fn be_false(actual: Bool) -> Expectation
pub external fn be_ok(Result(a, b)) -> Expectation
pub fn be_true(actual: Bool) -> Expectation
pub external fn equal(a, a) -> Expectation
pub fn fail() -> Expectation
pub external fn not_equal(a, a) -> Expectation