Table of Contents

Slim - Decision Table (test case as a row)

About

A decision table is a language structure of Fitness that defines tests run and expectation.

Similar to Fit Column Fixture

See Basic test with a decision table

Example

|eg.Division                    |
|numerator|denominator|quotient?|
|10       |2          |5.0      |
|12.6     |3          |4.2      |
|22       |7          |~=3.14   |
|9        |3          |<5       |
|11       |2          |4<_<6    |
|100      |4          |33       |

where

This decision table would test this Java class:

public class Division {
  private double numerator, denominator;
  
  public void setNumerator(double numerator) {
    this.numerator = numerator;
  }
  
  public void setDenominator(double denominator) {
    this.denominator = denominator;
  }
  
  public double quotient() {
    return numerator/denominator;
  }
}

Documentation / Reference