BoolTrueFalseTest
Tags:elm-unspecced
The Bool constants `True` and `False` print as `True` and `False` with `Debug.log`. 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 55 msOutput
Compiled in DEV mode. Follow the advice at https://elm-lang.org/0.19.1/optimize for better performance and smaller assets. true: True false: False
elm-0.19.2
passran in 55 msOutput
Compiled in DEV mode. Follow the advice at https://elm-lang.org/0.19.2/optimize for better performance and smaller assets. true: True false: False
elm-0.19.3
passran in 68 msOutput
Compiled in DEV mode. Follow the advice at https://elm-lang.org/0.19.3/optimize for better performance and smaller assets. true: True false: False
lamdera-1.5.0
passran in 50 msOutput
true: True false: False
Discussions
Discuss this test·Search the discussions on GitHub
Discussions are on GitHub; one about this test has [t:elm/BoolTrueFalseTest] in its title.
Source
The -- CHECK: lines give the expected output.
module BoolTrueFalseTest exposing (main)
{-| The Bool constants `True` and `False` print as `True` and `False` with `Debug.log`.
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: true: True
-- CHECK: false: False
import Html exposing (text)
main =
let
_ = Debug.log "true" True
_ = Debug.log "false" False
in
text "done"