|
123456789101112131415161718 |
- package Praktikum02;
-
- import org.junit.jupiter.api.Test;
-
- import static org.junit.jupiter.api.Assertions.*;
-
- class TriangleCheckerTest {
-
- @Test
- void checkTriangleNormal() {
- assertEquals(TriangleChecker.TriangleType.NORMAL,TriangleChecker.checkTriangle(5,2.6f, 3));
-
- }
- @Test
- void checkTriangleNone(){
- assertEquals(TriangleChecker.TriangleType.NONE,TriangleChecker.checkTriangle(6,2.9f, 2));
- }
- }
|