Elm Exactly
Results / elm-core /

CharIsAlphaTest

elm-0.19.1 passelm-0.19.2 passelm-0.19.3 passlamdera-1.5.0 pass
`Char.isAlpha` is `True` for `'a'` and `'Z'` and `False` for `'0'` and a space.

Results

elm-0.19.1

passran in 65 ms
Output
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 ms
Output
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 ms
Output
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 ms
Output
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"