Elm Exactly
Results / elm-core /

ListMapBoolTest

elm-0.19.1 passelm-0.19.2 passelm-0.19.3 passlamdera-1.5.0 pass
Checks that `List.map` produces correct `List Bool` results, mapping `not` and
`identity` over `[True, False, True]`.

Results

elm-0.19.1

passran in 70 ms
Output
Compiled in DEV mode. Follow the advice at https://elm-lang.org/0.19.1/optimize for better performance and smaller assets.
map_not: [False,True,False]
map_id: [True,False,True]

elm-0.19.2

passran in 42 ms
Output
Compiled in DEV mode. Follow the advice at https://elm-lang.org/0.19.2/optimize for better performance and smaller assets.
map_not: [False,True,False]
map_id: [True,False,True]

elm-0.19.3

passran in 63 ms
Output
Compiled in DEV mode. Follow the advice at https://elm-lang.org/0.19.3/optimize for better performance and smaller assets.
map_not: [False,True,False]
map_id: [True,False,True]

lamdera-1.5.0

passran in 85 ms
Output
map_not: [False,True,False]
map_id: [True,False,True]

Discussions

Discuss this test·Search the discussions on GitHub

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

Source

The -- CHECK: lines give the expected output.

module ListMapBoolTest exposing (main)
{-| Checks that `List.map` produces correct `List Bool` results, mapping `not` and
`identity` over `[True, False, True]`.
-}
-- CHECK: map_not: [False,True,False]
-- CHECK: map_id: [True,False,True]
import Html exposing (text)
main =
let
_ = Debug.log "map_not" (List.map not [True, False, True])
_ = Debug.log "map_id" (List.map identity [True, False, True])
in
text "done"