✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
Convertissez le jeu d'essais suivant en tests JUnit sachant que la signature de la fonction à tester est :
public class Triangle {
public static float aireTri(int base, float haut) { ... }
}
| V I L | Type de test | base | haut | Attendu |
|---|---|---|---|---|
| V | retour entier | 5 | 8 | 20 |
| V | retour décimal | 9 | 7 | 31.5 |
| V | haut décimal | 4 | 6.2 | 12.4 |
| I | base < 0 | -31 | 50 | Float.NaN |
| L | base = 0 | 0 | 25 | 0 |
Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!