arowM/elm-parser-test/1.0.0

NOTE: the latest version is 1.1.0

elm-parser-test

Helper functions to develop/test your own parser using elm/parser. It checks whether the result of parser is backtrackable or node.

run (keyword "import") "imp"
--> (Err _, True)

run (keyword "import") "import"
--> (Ok (), False)

run spaces "  "
--> (Ok (), False)

run (backtrackable spaces) "  "
--> (Ok (), True)