File tree Expand file tree Collapse file tree 2 files changed +0
-82
lines changed
Expand file tree Collapse file tree 2 files changed +0
-82
lines changed Original file line number Diff line number Diff line change @@ -235,60 +235,6 @@ pub fn compare(a: Bool, with b: Bool) -> Order {
235235 }
236236}
237237
238- /// Returns `True` if either argument's value is `True`.
239- ///
240- /// ## Examples
241- ///
242- /// ```gleam
243- /// max(True, False)
244- /// // -> True
245- /// ```
246- ///
247- /// ```gleam
248- /// max(False, True)
249- /// // -> True
250- /// ```
251- ///
252- /// ```gleam
253- /// max(False, False)
254- /// // -> False
255- /// ```
256- ///
257- @ deprecated ( "Use the `bool.or` function instead" )
258- pub fn max ( a : Bool , b : Bool ) -> Bool {
259- case a {
260- True -> True
261- False -> b
262- }
263- }
264-
265- /// Returns `False` if either bool value is `False`.
266- ///
267- /// ## Examples
268- ///
269- /// ```gleam
270- /// min(True, False)
271- /// // -> False
272- /// ```
273- ///
274- /// ```gleam
275- /// min(False, True)
276- /// // -> False
277- /// ```
278- ///
279- /// ```gleam
280- /// min(False, False)
281- /// // -> False
282- /// ```
283- ///
284- @ deprecated ( "Use the `bool.and` function instead" )
285- pub fn min ( a : Bool , b : Bool ) -> Bool {
286- case a {
287- False -> False
288- True -> b
289- }
290- }
291-
292238/// Returns a numeric representation of the given bool.
293239///
294240/// ## Examples
Original file line number Diff line number Diff line change @@ -112,34 +112,6 @@ pub fn compare_test() {
112112 |> should . equal ( order . Lt )
113113}
114114
115- pub fn max_test ( ) {
116- bool . max ( True , True )
117- |> should . be_true
118-
119- bool . max ( True , False )
120- |> should . be_true
121-
122- bool . max ( False , False )
123- |> should . be_false
124-
125- bool . max ( False , True )
126- |> should . be_true
127- }
128-
129- pub fn min_test ( ) {
130- bool . min ( True , True )
131- |> should . be_true
132-
133- bool . min ( True , False )
134- |> should . be_false
135-
136- bool . min ( False , False )
137- |> should . be_false
138-
139- bool . min ( False , True )
140- |> should . be_false
141- }
142-
143115pub fn to_int_test ( ) {
144116 bool . to_int ( True )
145117 |> should . equal ( 1 )
You can’t perform that action at this time.
0 commit comments