Array Fixture marks mismatched cells.
An unmatched row in the expected values is marked as missing.
| 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 |
| extra | one |
| a | x |
| a | y |
| b | y |
|
| sample array |
| column a | column b |
| extra missing | one |
| a | x |
| a | y |
| b | y |
|
|
| sample array |
| column a | column b |
| extra | one |
| a | x |
| a | y |
| b | y |
| then result is |
| sample array |
| column a | column b |
| extra missing | one |
| a | x |
| a | y |
| b | y |
|
An unmatched object in the actual collection is shown as surplus.
when test is⇓
| story test fixture |
| check | test result |
| sample array |
| column a | column b |
| a | x |
| b | y |
|
| sample array |
| column a | column b |
| a | x |
| b | y |
| a surplus |
y | |
|
| sample array |
| column a | column b |
| a | x |
| b | y |
| then result is |
| sample array |
| column a | column b |
| a | x |
| b | y |
| a surplus |
y | |
Rows out of order are reported.
when test is⇓
| story test fixture |
| check | test result |
| sample array |
| column a | column b |
| a | y |
| b | y |
| a | x |
|
| sample array |
| column a | column b |
| a out of order | y |
| b out of order | y |
| a out of order | x |
|
|
| sample array |
| column a | column b |
| a | y |
| b | y |
| a | x |
| then result is |
| sample array |
| column a | column b |
| a out of order | y |
| b out of order | y |
| a out of order | x |
|
when test is⇓
| story test fixture |
| check | test result |
| sample array |
| column a | column b |
| b | y |
| a | y |
| a | x |
|
| sample array |
| column a | column b |
| b out of order | y |
| a | y |
| a out of order | x |
|
|
| sample array |
| column a | column b |
| b | y |
| a | y |
| a | x |
| then result is |
| sample array |
| column a | column b |
| b out of order | y |
| a | y |
| a out of order | x |
|
Both surplus and missing rows are handled.
when test is⇓
| story test fixture |
| check | test result |
| sample array |
| column a | column b |
| a | x |
| m | s |
| b | y |
|
| sample array |
| column a | column b |
| a | x |
| m missing | s |
| b | y |
| a surplus |
y | |
|
| sample array |
| column a | column b |
| a | x |
| m | s |
| b | y |
| then result is |
| sample array |
| column a | column b |
| a | x |
| m missing | s |
| b | y |
| a surplus |
y | |
Encoded text is handled.
| setup sample array |
| column a | column b |
| <great> | <stuff> |
when test is⇓
| story test fixture |
| check | test result |
| sample array |
| column a | column b |
|
| sample array |
| column a | column b |
| <great> surplus |
<stuff> | |
|
| sample array |
| column a | column b |
| then result is |
| sample array |
| column a | column b |
| <great> surplus |
<stuff> | |
Closest match is used.
| setup sample array |
| column a | column b |
| a | b |
when test is⇓
| story test fixture |
| check | test result |
| sample array |
| column a | column b |
| a | x |
|
| sample array |
| column a | column b |
| a | x expected b actual At 0 expected x was b |
|
|
| sample array |
| column a | column b |
| a | x |
| then result is |
| sample array |
| column a | column b |
| a | x expected b actual At 0 expected x was b |
|
| setup sample array |
| column a | column b |
| a | x |
| a | b |
when test is⇓
| story test fixture |
| check | test result |
| sample array |
| column a | column b |
| a | b |
|
| sample array |
| column a | column b |
| a | b |
| a surplus |
x | |
|
| sample array |
| column a | column b |
| a | b |
| then result is |
| sample array |
| column a | column b |
| a | b |
| a surplus |
x | |