Elm Exactly
Results / elm-parser /

ParserIssue9DeadEndsToStringTodoTest

Tags:elm19-bug

elm-0.19.1 failelm-0.19.2 failelm-0.19.3 faillamdera-1.5.0 fail

Issue: elm/parser#9

`Parser.deadEndsToString` is a placeholder that returns "TODO deadEndsToString".

<https://github.com/elm/parser/issues/9>

Elm 0.19.1 (elm/parser 1.1.0) returns the literal text "TODO deadEndsToString" for any dead ends.
The function is documented as turning dead ends into a string describing the problem.

Results

elm-0.19.1

failran in 60 ms
Unexpected pattern (CHECK-NOT): TODO deadEndsToString
--- output ---
Compiled in DEV mode. Follow the advice at https://elm-lang.org/0.19.1/optimize for better performance and smaller assets.
message: "TODO deadEndsToString"

elm-0.19.2

failran in 76 ms
Unexpected pattern (CHECK-NOT): TODO deadEndsToString
--- output ---
Compiled in DEV mode. Follow the advice at https://elm-lang.org/0.19.2/optimize for better performance and smaller assets.
message: "TODO deadEndsToString"

elm-0.19.3

failran in 41 ms
Unexpected pattern (CHECK-NOT): TODO deadEndsToString
--- output ---
Compiled in DEV mode. Follow the advice at https://elm-lang.org/0.19.3/optimize for better performance and smaller assets.
message: "TODO deadEndsToString"

lamdera-1.5.0

failran in 43 ms
Unexpected pattern (CHECK-NOT): TODO deadEndsToString
--- output ---
message: "TODO deadEndsToString"

Discussions

Discuss this test·Search the discussions on GitHub

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

Source

The -- CHECK: lines give the expected output.

module ParserIssue9DeadEndsToStringTodoTest exposing (main)
{-| `Parser.deadEndsToString` is a placeholder that returns "TODO deadEndsToString".
<https://github.com/elm/parser/issues/9>
Elm 0.19.1 (elm/parser 1.1.0) returns the literal text "TODO deadEndsToString" for any dead ends.
The function is documented as turning dead ends into a string describing the problem.
-}
-- TAGS: elm19-bug
-- CHECK: message:
-- CHECK-NOT: TODO deadEndsToString
import Html exposing (text)
import Parser
main =
let
_ =
case Parser.run Parser.int "abc" of
Ok _ ->
Debug.log "message" "unexpected success"
Err deadEnds ->
Debug.log "message" (Parser.deadEndsToString deadEnds)
in
text "done"