aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorQuinn Wilton <wilton@synopsys.com>2020-12-02 11:43:57 -0800
committerLouis Pilfold <louis@lpil.uk>2020-12-02 20:13:15 +0000
commitba19b9a9b57d8090c9224311bb86309d90cc424b (patch)
treeeea893ef8c35c931a51231fb8b3e5953f7db631a /test
parent88090877348a4f0c84b3ef497bab98a9a1e39e23 (diff)
downloadgleam_stdlib-ba19b9a9b57d8090c9224311bb86309d90cc424b.tar.gz
gleam_stdlib-ba19b9a9b57d8090c9224311bb86309d90cc424b.zip
Add bool.nand
Diffstat (limited to 'test')
-rw-r--r--test/gleam/bool_test.gleam14
1 files changed, 14 insertions, 0 deletions
diff --git a/test/gleam/bool_test.gleam b/test/gleam/bool_test.gleam
index ad47ea2..3edea25 100644
--- a/test/gleam/bool_test.gleam
+++ b/test/gleam/bool_test.gleam
@@ -24,6 +24,20 @@ pub fn nor_test() {
|> should.be_false
}
+pub fn nand_test() {
+ bool.nand(False, False)
+ |> should.be_true
+
+ bool.nand(False, True)
+ |> should.be_true
+
+ bool.nand(True, False)
+ |> should.be_true
+
+ bool.nand(True, True)
+ |> should.be_false
+}
+
pub fn exclusive_or_test() {
bool.exclusive_or(True, True)
|> should.be_false