Elm Exactly
Results /

elm-parser

elm/parser

Discussions of this project and its tests ↓

Showing 51 of 51 tests. Hover over a badge for the reason.

Testelm-0.19.1elm-0.19.2elm-0.19.3lamdera-1.5.0
ParserAdvancedDeadEndTest
`Parser.Advanced.run` reports a failed `token` with the custom problem value given in its `Token`.
passpasspasspass
ParserAdvancedInContextTest
`Parser.Advanced.inContext` records its context on the dead ends of a parser that fails inside it.
passpasspasspass
ParserAdvancedKeywordTest
`Parser.Advanced.keyword` and `Parser.Advanced.symbol` succeed on input that starts with their token.
passpasspasspass
ParserAdvancedLoopTest
`Parser.Advanced.loop` repeats a step until it returns `Done`, threading its accumulated state through each step.
passpasspasspass
ParserAdvancedRunTest
`Parser.Advanced.run` returns the value of a parser that succeeds without consuming input.
passpasspasspass
ParserAdvancedSequenceTest
`Parser.Advanced.sequence` parses a bracketed, comma-separated list of integers.
passpasspasspass
ParserAdvancedTokenTest
`Parser.Advanced.token` succeeds on input that starts with the token and fails on input that does not.
passpasspasspass
ParserAndThenTest
`Parser.andThen` lets the parser that runs next depend on a value already parsed.
passpasspasspass
ParserBacktrackableTest
`Parser.oneOf` moves on to its next alternative when a `Parser.backtrackable` alternative fails.
passpasspasspass
ParserChompIfAstralTest
`Parser.chompIf` treats a character outside the Basic Multilingual Plane as a single `Char`, while parser offsets count it as two UTF-16 code units.
passpasspasspass
ParserChompIfTest
`Parser.chompIf` succeeds when the predicate accepts the next character and fails when it does not.
passpasspasspass
ParserChompUntilEndOrTest
`Parser.chompUntilEndOr` chomps to the end of the input when the closing string never appears.
passpasspasspass
ParserChompUntilTest
`Parser.chompUntil` chomps up to the first occurrence of a string and leaves that string unchomped.
passpasspasspass
ParserChompWhileTest
`Parser.chompWhile` chomps characters while the predicate holds and stops at the first that fails it.
passpasspasspass
ParserCommentsTest
`Parser.lineComment` and `Parser.multiComment` succeed on line, block and nested block comments.
passpasspasspass
ParserCommitTest
`Parser.oneOf` does not try a later alternative once an earlier one has consumed input and committed.
passpasspasspass
ParserEndTest
`Parser.end` succeeds only when no input is left.
passpasspasspass
ParserFloatTest
`Parser.float` parses a decimal number, with or without an exponent.
passpasspasspass
ParserHexIntTest
`Parser.number` configured for hexadecimal parses `0x` literals with hexadecimal digits in either letter case.
passpasspasspass
ParserIndentTest
Checks that `Parser.getIndent` inside `Parser.withIndent 4` returns 4.
passpasspasspass
ParserIntTest
Checks that `Parser.int` reads a decimal integer and fails on non-numeric input.
passpasspasspass
ParserIssue18IntLeadingZeroTestelm19-bug
`Parser.int` succeeds on inputs its documentation says it rejects.
failfailfailfail
ParserIssue20ChompUntilChompedStringTestelm19-bug
After `chompUntil`, the chomped string and the position disagree.
failfailfailfail
ParserIssue24GetIndentDefaultTestelm19-bug
`getIndent` without any `withIndent` returns 1, not the documented default 0.
failfailfailfail
ParserIssue25IntCommitsOnLeadingETestelm19-bug
`Parser.int` consumes input that starts with the letter `e`, so `oneOf` cannot try the next alternative.
failfailfailfail
ParserIssue2MultiCommentNotNestableTestelm19-bug
`multiComment "/*" "*/" NotNestable` does not consume the closing `*/`.
failfailfailfail
ParserIssue41NumberFloatProblemTestelm19-bug
`Parser.Advanced.number` with `float = Err problem` reports `invalid` instead of that problem.
failfailfailfail
ParserIssue44FloatCommitsOnLeadingETestelm19-bug
`Parser.float` commits on input that starts with `e`, so `oneOf` cannot fall back.
failfailfailfail
ParserIssue46LineCommentNewlineTestelm19-bug
`lineComment` counts the ending newline in the row but leaves it in the input, so the newline is counted twice.
failfailfailfail
ParserIssue53ChompUntilOffsetPositionTestelm19-bug
`chompUntil` leaves the parser's offset and its row/column out of sync.
failfailfailfail
ParserIssue58FloatAboveMaxIntTestelm19-bug
`Parser.float` loses precision on integral literals above 2^53.
failfailfailfail
ParserIssue9DeadEndsToStringTodoTestelm19-bug
`Parser.deadEndsToString` is a placeholder that returns "TODO deadEndsToString".
failfailfailfail
ParserKeywordTest
Checks that `Parser.keyword` matches a whole word but not the prefix of a longer identifier.
passpasspasspass
ParserLargeRopeInputTest
Checks that `chompWhile`, `symbol`, `chompUntil` and `getOffset` work on long strings built at run time.
passpasspasspass
ParserLazyTest
Checks that `Parser.lazy` lets a parser refer to itself, by matching nested parentheses.
passpasspasspass
ParserLoneLowSurrogateTestelm-unspecced
`Parser.chompIf` on a string that starts with two low surrogates (U+DC00 U+DC01) hands its predicate a `Char` whose code is 0xDC00 and consumes two UTF-16 code units.
passpasspasspass
ParserLoopTest
Checks that `Parser.loop` accumulates a list across iterations and ends with `Done`.
passpasspasspass
ParserMapChompedStringTest
Checks that `Parser.mapChompedString` passes the consumed text to its function.
passpasspasspass
ParserMapTest
Checks that `Parser.map` transforms a parser's result: `map negate int` on `"42"` gives `Ok -42`.
passpasspasspass
ParserNumberTest
Checks that `Parser.number` reads decimal and hexadecimal integers.
passpasspasspass
ParserOctalBinaryIntTest
Checks that `Parser.number` reads octal and binary integer literals.
passpasspasspass
ParserOneOfTest
Checks that `Parser.oneOf` falls through to a later alternative when an earlier one fails.
passpasspasspass
ParserPipelineTest
Checks that `|=` and `|.` build a record from parsed fields while discarding punctuation.
passpasspasspass
ParserPositionTest
Checks the position queries `getPosition`, `getRow`, `getCol`, `getOffset` and `getSource`.
passpasspasspass
ParserProblemTest
Checks that `Parser.problem` makes a parse fail and that `Parser.deadEndsToString` renders the failure.
passpasspasspass
ParserSequenceTest
Checks `Parser.sequence` with forbidden and with optional trailing separators.
passpasspasspass
ParserSpacesTest
Checks that `Parser.spaces` skips whitespace around a value: `" 42 "` gives `Ok 42`.
passpasspasspass
ParserSucceedTest
Checks that `Parser.succeed` returns its value without consuming input.
passpasspasspass
ParserSymbolTest
Checks that `Parser.symbol` matches one-character and two-character symbols.
passpasspasspass
ParserTokenTest
Checks that `Parser.token` matches a prefix even when an identifier character follows.
passpasspasspass
ParserVariableTest
Checks that `Parser.variable` accepts an identifier and rejects a reserved word.
passpasspasspass

Discussions

Discuss this project·Search the discussions on GitHub

Discussions are on GitHub; one about this project has [p:elm-parser] in its title.