aboutsummaryrefslogtreecommitdiff
path: root/src/expect.gleam
diff options
context:
space:
mode:
authorLouis Pilfold <louis@lpil.uk>2018-11-14 14:46:04 +0000
committerLouis Pilfold <louis@lpil.uk>2018-11-14 14:48:17 +0000
commit8f4c745b0805d9c3d9e173dbca6470fc80df519f (patch)
treef741be2b72f5141e4c51f0bcede29fc77f25e656 /src/expect.gleam
parent09dddb00e6c77582282293589022037e430abf04 (diff)
downloadgleam_stdlib-8f4c745b0805d9c3d9e173dbca6470fc80df519f.tar.gz
gleam_stdlib-8f4c745b0805d9c3d9e173dbca6470fc80df519f.zip
expect module
Diffstat (limited to 'src/expect.gleam')
-rw-r--r--src/expect.gleam16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/expect.gleam b/src/expect.gleam
new file mode 100644
index 0000000..f36ce08
--- /dev/null
+++ b/src/expect.gleam
@@ -0,0 +1,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)
+}