FA-208 / Parsing / Member archive
Removing carriage returns joins separate records · case 03
CRLF input leaves stray carriage returns, while a cleanup step merges records separated by CR alone.
Case contract
Split records on CRLF, CR, or LF only. Preserve empty records between separators, omit one final terminator-created empty element, and map empty input to []. Unicode line-separator characters are ordinary content.
Why this case matters
Cross-platform text imports encounter several newline conventions. Blind normalization can lose records or unexpectedly split Unicode content.
One recorded failure
Sample boundary fixtureThis sample comes from the broken implementation of a controlled reproducer.
| Boundary fixture | Actual | Expected | Outcome |
|---|---|---|---|
| CRLF is one separator | ["recordrecordrecord\r", "end\r"] | ["recordrecordrecord", "end"] | Failed |
MEMBER ARCHIVE
The complete case is available to members.
This record includes three runnable implementations, regression fixtures, execution results, and source hashes.
Member access is invitation-based. Sign in with your invited account to inspect the sources.
Sign in to the archive ↗