A cell is published in the notation it was written in
All 10 scenarios hold
The reporter publishes the value a row actually ran with, not the text of the cell, so a collection arrives as a collection and has to be written back out. It is written back in the notation the table format uses — square brackets for a list, braces for a set, key: value pairs for a map, nested to any depth — so a reader of the published spec sees the value spelled the way they would spell it themselves. Below, Cell is what a table row holds and Published cell is what the markdown report shows for it.
expected outcome
broken scenario
| Scenario | Cell | Published cell? |
|---|---|---|
| A plain value | Alice | Alice |
| An empty list | [] | [] |
| A list of values | [1, 2, 3] | [1, 2, 3] |
| An empty set | {} | {} |
| A set of values | {1, 2, 3} | {1, 2, 3} |
| An empty map | [:] | [:] |
| A map of values | [a: 1, b: 2] | [a: 1, b: 2] |
| A list within a list | [[1, 2], [a, b]] | [[1, 2], [a, b]] |
| A map within a map | [a: [b: 1]] | [a: [b: 1]] |
| Collections mixed | [a: [1, 2], b: {3}] | [a: [1, 2], b: {3}] |