Array Fixture errors are reported if the table is malformed.
setup sample array |
column a | column b |
a | x |
a | y |
b | y |
when test is⇓
story test fixture |
check | test result |
sample array |
column a | column b |
a | x | extra |
a | y |
b | y |
|
sample array |
column a | column b |
a
This table is invalid for this fixture: Row should be 2 cells wide.
| x | extra |
a | y |
b | y |
|
|
sample array |
column a | column b |
a | x | extra |
a | y |
b | y |
| then result is |
sample array |
column a | column b |
a
This table is invalid for this fixture: Row should be 2 cells wide.
| x | extra |
a | y |
b | y |
|
when test is⇓
story test fixture |
check | test result |
sample array |
column a | column b |
a |
a | y |
b | y |
|
sample array |
column a | column b |
a
This table is invalid for this fixture: Row should be 2 cells wide.
|
a | y |
b | y |
|
|
sample array |
column a | column b |
a |
a | y |
b | y |
| then result is |
sample array |
column a | column b |
a
This table is invalid for this fixture: Row should be 2 cells wide.
|
a | y |
b | y |
|
when test is⇓
story test fixture |
check | test result |
|
sample array
This table is invalid for this fixture: Header row missing.
|
|
|
| then result is |
sample array
This table is invalid for this fixture: Header row missing.
|
|
when test is⇓
story test fixture |
check | test result |
sample array |
column a | garbage | column b |
a | | x |
a | | y |
b | | y |
|
sample array |
column a | garbage
Column 'garbage' not used.
| column b |
a | | x |
a | | y |
b | | y |
|
|
sample array |
column a | garbage | column b |
a | | x |
a | | y |
b | | y |
| then result is |
sample array |
column a | garbage
Column 'garbage' not used.
| column b |
a | | x |
a | | y |
b | | y |
|