aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorQuinn Wilton <wilton@synopsys.com>2020-12-02 11:33:39 -0800
committerLouis Pilfold <louis@lpil.uk>2020-12-02 20:13:15 +0000
commite3178fb8d056b2e55f0baa041be313d9c4bd1ff4 (patch)
tree494ca462749ee2093bc2fe07c22f1f0b6d97b9c8 /test
parent32d9d1622940323ec41ae991a62cf82427e16561 (diff)
downloadgleam_stdlib-e3178fb8d056b2e55f0baa041be313d9c4bd1ff4.tar.gz
gleam_stdlib-e3178fb8d056b2e55f0baa041be313d9c4bd1ff4.zip
Add bool.exclusive_nor
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 aced02b..c2ef78b 100644
--- a/test/gleam/bool_test.gleam
+++ b/test/gleam/bool_test.gleam
@@ -24,6 +24,20 @@ pub fn exclusive_or_test() {
|> should.be_true
}
+pub fn exclusive_nor_test() {
+ bool.exclusive_nor(False, False)
+ |> should.be_true
+
+ bool.exclusive_nor(False, True)
+ |> should.be_false
+
+ bool.exclusive_nor(True, False)
+ |> should.be_false
+
+ bool.exclusive_nor(True, True)
+ |> should.be_true
+}
+
pub fn compare_test() {
bool.compare(True, True)
|> should.equal(order.Eq)