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