|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 |
The vertical bars delimit table cells (tables are written by separating cells with the pipe symbol)
If you change “eg.Division” to any other name, you may need to add exclamation mark ! before. It is optional, and tells FitNesse not to apply any smart formatting to table contents (ie to avoid confusing FitNesse with WikiWords)
The fixture is the Java (or some other supported language) class that the engine will call to process the contents of the table.
eg.Division is the class to test where :
eg specifies a Java package (or other language namespace),
and Division specifies the actual class to be called.
the rows are processed from left to right,
the input values are headers without a question mark ?
the input values are passed to the corresponding fields using setter functions
the expected value are the header with a question mark (ie quotient?) and can be expressed with operators: