|
12345678910111213141516171819202122232425 |
- package Prak1;
-
- import org.junit.jupiter.api.Test;
-
- import static org.junit.jupiter.api.Assertions.*;
-
- class TriangleCheckerTest {
-
- @Test
- void checkTriangle_Normal () {
- assertEquals(TriangleChecker.TriangleType.NORMAL, TriangleChecker.checkTriangle(15, 12, 22));
- }
- @Test
- void checkTriangle_gleichseitig () {
- assertEquals(TriangleChecker.TriangleType.EQUILATERAL, TriangleChecker.checkTriangle(10, 10, 10));
- }
- @Test
- void checkTriangle_none() {
- assertEquals(TriangleChecker.TriangleType.NONE, TriangleChecker.checkTriangle(-10, 0, 10));
- }
- @Test
- void checkTriangle_gleichschenklig() {
- assertEquals(TriangleChecker.TriangleType.ISOSCELES, TriangleChecker.checkTriangle(10, 10, 5));
- }
- }
|