A table (test table) is the basic statement of Fitnesse in order to defined test.
The format is table dependent but they generally take the basic form of:
This example from the getting started, a slim decision table:
|eg.Division | <-- The test class (Fixture)
|numerator|denominator|quotient?| <-- The method called (without ?, this is setter function, with a ?, the function returns value)
|10 |2 |5.0 | <-- The first row of data to set and to expect
|12.6 |3 |4.2 | <-- The second row of data to set and to expect
|22 |7 |~=3.14 |
|9 |3 |<5 |
|11 |2 |4<_<6 |
|100 |4 |33 |
where:
After running the test:
|Decision:my decision table|constructor argument 1|constructor argument 2|
|...|