CommencerCommencer gratuitement

What to assert on?

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

Cet exercice fait partie du cours

Introduction to Testing in Java

Afficher le cours

Exercice interactif pratique

Passez de la théorie à la pratique avec l’un de nos exercices interactifs

Commencer l’exercice