1234567891011121314151617181920212223 |
- 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));
- }
-
- @Test
- void checkTriangleISOSCELES(){
- assertEquals(TriangleChecker.TriangleType.ISOSCELES,TriangleChecker.checkTriangle(6,6, 2));
- }
- }
|