ListReverseTest
Checks `List.reverse` on an empty list and on lists of three and five integers.
Results
elm-0.19.1
passran in 76 msOutput
Compiled in DEV mode. Follow the advice at https://elm-lang.org/0.19.1/optimize for better performance and smaller assets. rev1: [] rev2: [3,2,1] rev3: [5,4,3,2,1]
elm-0.19.2
passran in 67 msOutput
Compiled in DEV mode. Follow the advice at https://elm-lang.org/0.19.2/optimize for better performance and smaller assets. rev1: [] rev2: [3,2,1] rev3: [5,4,3,2,1]
elm-0.19.3
passran in 61 msOutput
Compiled in DEV mode. Follow the advice at https://elm-lang.org/0.19.3/optimize for better performance and smaller assets. rev1: [] rev2: [3,2,1] rev3: [5,4,3,2,1]
lamdera-1.5.0
passran in 67 msOutput
rev1: [] rev2: [3,2,1] rev3: [5,4,3,2,1]
Discussions
Discuss this test·Search the discussions on GitHub
Discussions are on GitHub; one about this test has [t:elm-core/ListReverseTest] in its title.
Source
The -- CHECK: lines give the expected output.
module ListReverseTest exposing (main)
{-| Checks `List.reverse` on an empty list and on lists of three and five
integers.
-}
-- CHECK: rev1: []
-- CHECK: rev2: [3,2,1]
-- CHECK: rev3: [5,4,3,2,1]
import Html exposing (text)
main =
let
_ = Debug.log "rev1" (List.reverse [])
_ = Debug.log "rev2" (List.reverse [1, 2, 3])
_ = Debug.log "rev3" (List.reverse [1, 2, 3, 4, 5])
in
text "done"