TuplePairFuncTest
`Tuple.pair` builds a pair from two `Int` arguments and from two `String` arguments.
Results
elm-0.19.1
passran in 43 msOutput
Compiled in DEV mode. Follow the advice at https://elm-lang.org/0.19.1/optimize for better performance and smaller assets.
pair1: (1,2)
pair2: ("a","b")
elm-0.19.2
passran in 43 msOutput
Compiled in DEV mode. Follow the advice at https://elm-lang.org/0.19.2/optimize for better performance and smaller assets.
pair1: (1,2)
pair2: ("a","b")
elm-0.19.3
passran in 60 msOutput
Compiled in DEV mode. Follow the advice at https://elm-lang.org/0.19.3/optimize for better performance and smaller assets.
pair1: (1,2)
pair2: ("a","b")
lamdera-1.5.0
passran in 57 msOutput
pair1: (1,2)
pair2: ("a","b")
Discussions
Discuss this test·Search the discussions on GitHub
Discussions are on GitHub; one about this test has [t:elm-core/TuplePairFuncTest] in its title.
Source
The -- CHECK: lines give the expected output.
module TuplePairFuncTest exposing (main)
{-| `Tuple.pair` builds a pair from two `Int` arguments and from two `String` arguments.
-}
-- CHECK: pair1: (1,2)
-- CHECK: pair2: ("a","b")
import Html exposing (text)
main =
let
_ = Debug.log "pair1" (Tuple.pair 1 2)
_ = Debug.log "pair2" (Tuple.pair "a" "b")
in
text "done"