Elm Exactly
Results / elm /

CharAstralCustomFieldShowTest

Tags:elm-unspecced

elm-0.19.1 passelm-0.19.2 passelm-0.19.3 passlamdera-1.5.0 pass
`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 ms
Output
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 ms
Output
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 ms
Output
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 ms
Output
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"