Elm Exactly
Results / elm /

CharAstralTupleShowTest

Tags:elm-unspecced

elm-0.19.1 passelm-0.19.2 passelm-0.19.3 passlamdera-1.5.0 pass
`Debug.log` prints tuples that hold astral `Char`s (code points above 0xFFFF) with the
characters themselves: `(1,'๐Ÿ˜€')` and `('a','๐„ž',2)`.

The code points the tuples keep are checked by `CharAstralTupleTest`.

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 59 ms
Output
Compiled in DEV mode. Follow the advice at https://elm-lang.org/0.19.1/optimize for better performance and smaller assets.
tup2_show: (1,'๐Ÿ˜€')
tup3_show: ('a','๐„ž',2)

elm-0.19.2

passran in 46 ms
Output
Compiled in DEV mode. Follow the advice at https://elm-lang.org/0.19.2/optimize for better performance and smaller assets.
tup2_show: (1,'๐Ÿ˜€')
tup3_show: ('a','๐„ž',2)

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.
tup2_show: (1,'๐Ÿ˜€')
tup3_show: ('a','๐„ž',2)

lamdera-1.5.0

passran in 46 ms
Output
tup2_show: (1,'๐Ÿ˜€')
tup3_show: ('a','๐„ž',2)

Discussions

Discuss this testยทSearch the discussions on GitHub

Discussions are on GitHub; one about this test has [t:elm/CharAstralTupleShowTest] in its title.

Source

The -- CHECK: lines give the expected output.

module CharAstralTupleShowTest exposing (main)
{-| `Debug.log` prints tuples that hold astral `Char`s (code points above 0xFFFF) with the
characters themselves: `(1,'๐Ÿ˜€')` and `('a','๐„ž',2)`.
The code points the tuples keep are checked by `CharAstralTupleTest`.
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: tup2_show: (1,'๐Ÿ˜€')
-- CHECK: tup3_show: ('a','๐„ž',2)
import Html exposing (text)
main =
let
_ =
Debug.log "tup2_show" ( 1, '๐Ÿ˜€' )
_ =
Debug.log "tup3_show" ( 'a', '\u{1D11E}', 2 )
in
text "done"