aboutsummaryrefslogtreecommitdiff
path: root/src/bool.gleam
diff options
context:
space:
mode:
Diffstat (limited to 'src/bool.gleam')
-rw-r--r--src/bool.gleam24
1 files changed, 12 insertions, 12 deletions
diff --git a/src/bool.gleam b/src/bool.gleam
index 84e5f6c..89d39f0 100644
--- a/src/bool.gleam
+++ b/src/bool.gleam
@@ -1,20 +1,20 @@
import expect
import order
-// pub fn not(bool) {
-// case bool {
-// | True -> False
-// | False -> True
-// }
-// }
+pub fn negate(bool) {
+ case bool {
+ | True -> False
+ | False -> True
+ }
+}
-// test not {
-// not(True)
-// |> expect:false
+test negate {
+ negate(True)
+ |> expect:false
-// not(False)
-// |> expect:true
-// }
+ negate(False)
+ |> expect:true
+}
// pub fn compare(a, b) {
// case {a, b} {