CharAstralTupleShowTest
Tags:elm-unspecced
`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 msOutput
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 msOutput
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 msOutput
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 msOutput
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"