Skip to content

0.7.x manual 03.EXAMPLES

Hiroshi Ukai edited this page Jun 29, 2016 · 6 revisions

This page is work in progress!!!

Examples

Quadratic equation solver

  • session1: Test initial version of quadratic equation solver.
  • session2: Exclude invalid test cases, whose a is 0. Because they are not quadratic equations. And allow tests to accept solutions which make the equation less than 0.01.
  • session3: Exclude tests cases whose absolute values of a, b, and c because they cause overflows.
  • session4: The SUT, QuadraticEquationSolver is now enhanced to throw IllegalArgumentException when solutions become imaginary. Tests need to be enhanced to handle this new behaviour, too. @When annotation will be introduced to switch test methods to be executed.
  • session5: How to implement a topLevelConstraint (part - 1).
  • session6: How to implement a topLevelConstraint (part - 2). Defining negative tests. (part - 1).
  • session7: How to implement a topLevelConstraint (part - 2). Generating negative tests smartly.
Clone this wiki locally