gleam/should

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.

Types

Expectation

pub external type Expectation

Functions

be_error

pub external fn be_error(Result(a, b)) -> Expectation

be_false

pub external fn be_false(Bool) -> Expectation

be_ok

pub external fn be_ok(Result(a, b)) -> Expectation

be_true

pub external fn be_true(Bool) -> Expectation

equal

pub external fn equal(a, a) -> Expectation

fail

pub fn fail() -> Expectation

not_equal

pub external fn not_equal(a, a) -> Expectation