Solution: Unit Test Using Test After Development

Learn the solution to the test after development challenge and learn from your mistakes.


This lesson presents the solution to the challenge to implement a simple probability calculator, followed by the test methods to verify its correctness.

Solution to challenge

The project solution is shown in the widget below. Run the widget to see that all tests pass:

Get hands-on with 1200+ tech skills courses.