1414/// ## Examples
1515///
1616/// ```gleam
17- /// and(True, True)
18- /// // -> True
17+ /// assert and(True, True)
1918/// ```
2019///
2120/// ```gleam
22- /// and(False, True)
23- /// // -> False
21+ /// assert !and(False, True)
2422/// ```
2523///
2624/// ```gleam
27- /// False |> and(True)
28- /// // -> False
25+ /// assert !and(False, True)
26+ /// ```
27+ ///
28+ /// ```gleam
29+ /// assert !and(False, False)
2930/// ```
3031///
3132pub fn and ( a : Bool , b : Bool ) -> Bool {
@@ -40,18 +41,19 @@ pub fn and(a: Bool, b: Bool) -> Bool {
4041/// ## Examples
4142///
4243/// ```gleam
43- /// or(True, True)
44- /// // -> True
44+ /// assert or(True, True)
45+ /// ```
46+ ///
47+ /// ```gleam
48+ /// assert or(False, True)
4549/// ```
4650///
4751/// ```gleam
48- /// or(False, True)
49- /// // -> True
52+ /// assert or(False, True)
5053/// ```
5154///
5255/// ```gleam
53- /// False |> or(True)
54- /// // -> True
56+ /// assert !or(False, False)
5557/// ```
5658///
5759pub fn or ( a : Bool , b : Bool ) -> Bool {
@@ -65,13 +67,11 @@ pub fn or(a: Bool, b: Bool) -> Bool {
6567/// ## Examples
6668///
6769/// ```gleam
68- /// negate(True)
69- /// // -> False
70+ /// assert !negate(True)
7071/// ```
7172///
7273/// ```gleam
73- /// negate(False)
74- /// // -> True
74+ /// assert negate(False)
7575/// ```
7676///
7777pub fn negate ( bool : Bool ) -> Bool {
@@ -83,23 +83,19 @@ pub fn negate(bool: Bool) -> Bool {
8383/// ## Examples
8484///
8585/// ```gleam
86- /// nor(False, False)
87- /// // -> True
86+ /// assert nor(False, False)
8887/// ```
8988///
9089/// ```gleam
91- /// nor(False, True)
92- /// // -> False
90+ /// assert !nor(False, True)
9391/// ```
9492///
9593/// ```gleam
96- /// nor(True, False)
97- /// // -> False
94+ /// assert !nor(True, False)
9895/// ```
9996///
10097/// ```gleam
101- /// nor(True, True)
102- /// // -> False
98+ /// assert !nor(True, True)
10399/// ```
104100///
105101pub fn nor ( a : Bool , b : Bool ) -> Bool {
@@ -111,23 +107,19 @@ pub fn nor(a: Bool, b: Bool) -> Bool {
111107/// ## Examples
112108///
113109/// ```gleam
114- /// nand(False, False)
115- /// // -> True
110+ /// assert nand(False, False)
116111/// ```
117112///
118113/// ```gleam
119- /// nand(False, True)
120- /// // -> True
114+ /// assert nand(False, True)
121115/// ```
122116///
123117/// ```gleam
124- /// nand(True, False)
125- /// // -> True
118+ /// assert nand(True, False)
126119/// ```
127120///
128121/// ```gleam
129- /// nand(True, True)
130- /// // -> False
122+ /// assert !nand(True, True)
131123/// ```
132124///
133125pub fn nand ( a : Bool , b : Bool ) -> Bool {
@@ -139,23 +131,19 @@ pub fn nand(a: Bool, b: Bool) -> Bool {
139131/// ## Examples
140132///
141133/// ```gleam
142- /// exclusive_or(False, False)
143- /// // -> False
134+ /// assert !exclusive_or(False, False)
144135/// ```
145136///
146137/// ```gleam
147- /// exclusive_or(False, True)
148- /// // -> True
138+ /// assert exclusive_or(False, True)
149139/// ```
150140///
151141/// ```gleam
152- /// exclusive_or(True, False)
153- /// // -> True
142+ /// assert exclusive_or(True, False)
154143/// ```
155144///
156145/// ```gleam
157- /// exclusive_or(True, True)
158- /// // -> False
146+ /// assert !exclusive_or(True, True)
159147/// ```
160148///
161149pub fn exclusive_or ( a : Bool , b : Bool ) -> Bool {
@@ -167,23 +155,19 @@ pub fn exclusive_or(a: Bool, b: Bool) -> Bool {
167155/// ## Examples
168156///
169157/// ```gleam
170- /// exclusive_nor(False, False)
171- /// // -> True
158+ /// assert exclusive_nor(False, False)
172159/// ```
173160///
174161/// ```gleam
175- /// exclusive_nor(False, True)
176- /// // -> False
162+ /// assert !exclusive_nor(False, True)
177163/// ```
178164///
179165/// ```gleam
180- /// exclusive_nor(True, False)
181- /// // -> False
166+ /// assert !exclusive_nor(True, False)
182167/// ```
183168///
184169/// ```gleam
185- /// exclusive_nor(True, True)
186- /// // -> True
170+ /// assert exclusive_nor(True, True)
187171/// ```
188172///
189173pub fn exclusive_nor ( a : Bool , b : Bool ) -> Bool {
@@ -195,13 +179,11 @@ pub fn exclusive_nor(a: Bool, b: Bool) -> Bool {
195179/// ## Examples
196180///
197181/// ```gleam
198- /// to_string(True)
199- /// // -> "True"
182+ /// assert to_string(True) == "True"
200183/// ```
201184///
202185/// ```gleam
203- /// to_string(False)
204- /// // -> "False"
186+ /// assert to_string(False) == "False"
205187/// ```
206188///
207189pub fn to_string ( bool : Bool ) -> String {
0 commit comments