Elm Exactly
Results / elm-core /

ListAnyBoolTest

elm-0.19.1 passelm-0.19.2 passelm-0.19.3 passlamdera-1.5.0 pass
`List.any` and `List.all` on `List Bool`, with `identity` and `not` as the
predicate, return the expected `True` or `False`.

Results

elm-0.19.1

passran in 64 ms
Output
Compiled in DEV mode. Follow the advice at https://elm-lang.org/0.19.1/optimize for better performance and smaller assets.
any_id_true: True
any_id_false: False
any_not_true: True
any_not_false: False
all_id_true: True
all_id_false: False

elm-0.19.2

passran in 64 ms
Output
Compiled in DEV mode. Follow the advice at https://elm-lang.org/0.19.2/optimize for better performance and smaller assets.
any_id_true: True
any_id_false: False
any_not_true: True
any_not_false: False
all_id_true: True
all_id_false: False

elm-0.19.3

passran in 59 ms
Output
Compiled in DEV mode. Follow the advice at https://elm-lang.org/0.19.3/optimize for better performance and smaller assets.
any_id_true: True
any_id_false: False
any_not_true: True
any_not_false: False
all_id_true: True
all_id_false: False

lamdera-1.5.0

passran in 56 ms
Output
any_id_true: True
any_id_false: False
any_not_true: True
any_not_false: False
all_id_true: True
all_id_false: False

Discussions

Discuss this test·Search the discussions on GitHub

Discussions are on GitHub; one about this test has [t:elm-core/ListAnyBoolTest] in its title.

Source

The -- CHECK: lines give the expected output.

module ListAnyBoolTest exposing (main)
{-| `List.any` and `List.all` on `List Bool`, with `identity` and `not` as the
predicate, return the expected `True` or `False`.
-}
-- CHECK: any_id_true: True
-- CHECK: any_id_false: False
-- CHECK: any_not_true: True
-- CHECK: any_not_false: False
-- CHECK: all_id_true: True
-- CHECK: all_id_false: False
import Html exposing (text)
main =
let
_ = Debug.log "any_id_true" (List.any identity [False, True, False])
_ = Debug.log "any_id_false" (List.any identity [False, False, False])
_ = Debug.log "any_not_true" (List.any not [True, False])
_ = Debug.log "any_not_false" (List.any not [True, True])
_ = Debug.log "all_id_true" (List.all identity [True, True, True])
_ = Debug.log "all_id_false" (List.all identity [True, False, True])
in
text "done"