CharAstralCustomFieldShowTest
Tags:elm-unspecced
`Debug.log` prints a constructor whose field is an astral `Char` (code point above 0xFFFF) with the character itself: `Box 3 '๐'`. The code point the field keeps is checked by `CharAstralCustomFieldTest`. A Standard Definition of Elm? does not decide this test: `Debug.log l v` evaluates to `v`, and any output it makes, its text, its order and whether it is made at all, is outside the definition (ruling A62).
Results
elm-0.19.1
passran in 44 msOutput
Compiled in DEV mode. Follow the advice at https://elm-lang.org/0.19.1/optimize for better performance and smaller assets. box_show: Box 3 '๐'
elm-0.19.2
passran in 74 msOutput
Compiled in DEV mode. Follow the advice at https://elm-lang.org/0.19.2/optimize for better performance and smaller assets. box_show: Box 3 '๐'
elm-0.19.3
passran in 71 msOutput
Compiled in DEV mode. Follow the advice at https://elm-lang.org/0.19.3/optimize for better performance and smaller assets. box_show: Box 3 '๐'
lamdera-1.5.0
passran in 89 msOutput
box_show: Box 3 '๐'
Discussions
Discuss this testยทSearch the discussions on GitHub
Discussions are on GitHub; one about this test has [t:elm/CharAstralCustomFieldShowTest] in its title.
Source
The -- CHECK: lines give the expected output.
module CharAstralCustomFieldShowTest exposing (main)
{-| `Debug.log` prints a constructor whose field is an astral `Char` (code point above 0xFFFF)
with the character itself: `Box 3 '๐'`.
The code point the field keeps is checked by `CharAstralCustomFieldTest`.
A Standard Definition of Elm? does not decide this test: `Debug.log l v` evaluates to `v`, and any
output it makes, its text, its order and whether it is made at all, is outside the definition
(ruling A62).
-}
-- TAGS: elm-unspecced
-- CHECK: box_show: Box 3 '๐'
import Html exposing (text)
type Box
= Box Int Char
main =
let
_ =
Debug.log "box_show" (Box 3 '๐')
in
text "done"