Whitespace is significant at line edges, in runs, and in tabs
All 14 scenarios hold
Significant means: any leading or trailing whitespace (on any line of a multiline value), any run of two or more spaces, any tab, and values aligned with pipes as in a formatted table row. A single space between words is not significant.
expected outcome
broken scenario
| Scenario | Value | Significant? |
|---|---|---|
| Plain word | Alice | false |
| Single internal space | Alice Smith | false |
| Leading space | x | true |
| Trailing space | x | true |
| Whitespace-only value | true | |
| Empty string | “” | false |
| Tab between words | a b | true |
| Run of two spaces | a b | true |
| Pipe between words | a|b | true |
| Formatted row with pipe | Alice | 30 | true |
| Multiline plain | ab\ncd | false |
| Space before newline | ab \ncd | true |
| Space after newline | ab\n cd | true |
| Null value | false |