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