Get startedGet started for free

What to assert on?

In the previous exercise, why did we assert on the result being positive rather than on its exact value?

This exercise is part of the course

Introduction to Testing in Java

View Course

Hands-on interactive exercise

Turn theory into action with one of our interactive exercises

Start Exercise