CharIsAlphaTest
`Char.isAlpha` is `True` for `'a'` and `'Z'` and `False` for `'0'` and a space.
Results
elm-0.19.1
passran in 65 msOutput
Compiled in DEV mode. Follow the advice at https://elm-lang.org/0.19.1/optimize for better performance and smaller assets. alpha1: True alpha2: True alpha3: False alpha4: False
elm-0.19.2
passran in 55 msOutput
Compiled in DEV mode. Follow the advice at https://elm-lang.org/0.19.2/optimize for better performance and smaller assets. alpha1: True alpha2: True alpha3: False alpha4: False
elm-0.19.3
passran in 74 msOutput
Compiled in DEV mode. Follow the advice at https://elm-lang.org/0.19.3/optimize for better performance and smaller assets. alpha1: True alpha2: True alpha3: False alpha4: False
lamdera-1.5.0
passran in 44 msOutput
alpha1: True alpha2: True alpha3: False alpha4: False
Discussions
Discuss this test·Search the discussions on GitHub
Discussions are on GitHub; one about this test has [t:elm-core/CharIsAlphaTest] in its title.
Source
The -- CHECK: lines give the expected output.
module CharIsAlphaTest exposing (main)
{-| `Char.isAlpha` is `True` for `'a'` and `'Z'` and `False` for `'0'` and a space.
-}
-- CHECK: alpha1: True
-- CHECK: alpha2: True
-- CHECK: alpha3: False
-- CHECK: alpha4: False
import Char
import Html exposing (text)
main =
let
_ = Debug.log "alpha1" (Char.isAlpha 'a')
_ = Debug.log "alpha2" (Char.isAlpha 'Z')
_ = Debug.log "alpha3" (Char.isAlpha '0')
_ = Debug.log "alpha4" (Char.isAlpha ' ')
in
text "done"