Reads a table as a header row and its data rows
All 4 scenarios hold
These rules cover the shape a table must have. They apply before the parser reads any value.
The Input column holds the lines of the source.
The first row read becomes the header. Every row after it is a data row. Each row divides into one cell per header.
expected outcome
broken scenario
| Scenario | Input | Headers? | Data rows? |
|---|---|---|---|
| One data row |
|
|
|
| Two data rows |
|
|
|
| Single column |
|
|
|
| Three columns |
|
|
|