aboutsummaryrefslogtreecommitdiff
path: root/src/expect.gleam
blob: f36ce080eadcd98790692dc41364386dcd327bf6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// TODO: Move this module into another package so it can be used as a
// dep only in test.

pub external type Expectation;

pub external fn equal(a, a) -> Expectation = 'gleam__stdlib' 'expect_equal';

pub external fn not_equal(a, a) -> Expectation = 'gleam__stdlib' 'expect_not_equal';

pub external fn true(Bool) -> Expectation = 'gleam__stdlib' 'expect_true';

pub external fn false(Bool) -> Expectation = 'gleam__stdlib' 'expect_false';

pub fn fail() {
  true(False)
}