StringFromIntFloatTest
Checks `String.fromInt`, `String.fromFloat` and `String.fromChar` on one value each: `42`, `3.14` and `'A'`.
Results
elm-0.19.1
passran in 51 msOutput
Compiled in DEV mode. Follow the advice at https://elm-lang.org/0.19.1/optimize for better performance and smaller assets. fromInt1: "42" fromFloat1: "3.14" fromChar1: "A"
elm-0.19.2
passran in 60 msOutput
Compiled in DEV mode. Follow the advice at https://elm-lang.org/0.19.2/optimize for better performance and smaller assets. fromInt1: "42" fromFloat1: "3.14" fromChar1: "A"
elm-0.19.3
passran in 49 msOutput
Compiled in DEV mode. Follow the advice at https://elm-lang.org/0.19.3/optimize for better performance and smaller assets. fromInt1: "42" fromFloat1: "3.14" fromChar1: "A"
lamdera-1.5.0
passran in 37 msOutput
fromInt1: "42" fromFloat1: "3.14" fromChar1: "A"
Discussions
Discuss this test·Search the discussions on GitHub
Discussions are on GitHub; one about this test has [t:elm-core/StringFromIntFloatTest] in its title.
Source
The -- CHECK: lines give the expected output.
module StringFromIntFloatTest exposing (main)
{-| Checks `String.fromInt`, `String.fromFloat` and `String.fromChar` on one value each: `42`, `3.14` and `'A'`.
-}
-- CHECK: fromInt1: "42"
-- CHECK: fromFloat1: "3.14"
-- CHECK: fromChar1: "A"
import Html exposing (text)
main =
let
_ = Debug.log "fromInt1" (String.fromInt 42)
_ = Debug.log "fromFloat1" (String.fromFloat 3.14)
_ = Debug.log "fromChar1" (String.fromChar 'A')
in
text "done"