Results / elm-parser /
ParserIndentTest
Checks that `Parser.getIndent` inside `Parser.withIndent 4` returns 4. The parser runs on an empty string and consumes nothing, so the result is `Ok 4` without any input being read.
Results
elm-0.19.1
passran in 67 msOutput
Compiled in DEV mode. Follow the advice at https://elm-lang.org/0.19.1/optimize for better performance and smaller assets. indent: Ok 4
elm-0.19.2
passran in 66 msOutput
Compiled in DEV mode. Follow the advice at https://elm-lang.org/0.19.2/optimize for better performance and smaller assets. indent: Ok 4
elm-0.19.3
passran in 85 msOutput
Compiled in DEV mode. Follow the advice at https://elm-lang.org/0.19.3/optimize for better performance and smaller assets. indent: Ok 4
lamdera-1.5.0
passran in 42 msOutput
indent: Ok 4
Discussions
Discuss this test·Search the discussions on GitHub
Discussions are on GitHub; one about this test has [t:elm-parser/ParserIndentTest] in its title.
Source
The -- CHECK: lines give the expected output.
module ParserIndentTest exposing (main)
{-| Checks that `Parser.getIndent` inside `Parser.withIndent 4` returns 4.
The parser runs on an empty string and consumes nothing, so the result is
`Ok 4` without any input being read.
-}
-- CHECK: indent: Ok 4
import Html exposing (text)
import Parser
p : Parser.Parser Int
p =
Parser.withIndent 4 Parser.getIndent
main =
let
result = Parser.run p ""
_ = Debug.log "indent" result
in
text "done"