CharToLowerTest
`Char.toLower` maps `'A'` to `'a'` and `'Z'` to `'z'`, and leaves `'0'` unchanged.
Results
elm-0.19.1
passran in 67 msOutput
Compiled in DEV mode. Follow the advice at https://elm-lang.org/0.19.1/optimize for better performance and smaller assets. lower1: 'a' lower2: 'z' lower3: '0'
elm-0.19.2
passran in 76 msOutput
Compiled in DEV mode. Follow the advice at https://elm-lang.org/0.19.2/optimize for better performance and smaller assets. lower1: 'a' lower2: 'z' lower3: '0'
elm-0.19.3
passran in 72 msOutput
Compiled in DEV mode. Follow the advice at https://elm-lang.org/0.19.3/optimize for better performance and smaller assets. lower1: 'a' lower2: 'z' lower3: '0'
lamdera-1.5.0
passran in 44 msOutput
lower1: 'a' lower2: 'z' lower3: '0'
Discussions
Discuss this test·Search the discussions on GitHub
Discussions are on GitHub; one about this test has [t:elm-core/CharToLowerTest] in its title.
Source
The -- CHECK: lines give the expected output.
module CharToLowerTest exposing (main)
{-| `Char.toLower` maps `'A'` to `'a'` and `'Z'` to `'z'`, and leaves `'0'` unchanged.
-}
-- CHECK: lower1: 'a'
-- CHECK: lower2: 'z'
-- CHECK: lower3: '0'
import Char
import Html exposing (text)
main =
let
_ = Debug.log "lower1" (Char.toLower 'A')
_ = Debug.log "lower2" (Char.toLower 'Z')
_ = Debug.log "lower3" (Char.toLower '0')
in
text "done"