You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

TriangleCheckerTest.java 430B

123456789101112131415161718
  1. package praktikum02;
  2. import org.junit.jupiter.api.Test;
  3. import static org.junit.jupiter.api.Assertions.*;
  4. class TriangleCheckerTest {
  5. @Test
  6. void checkTriangle() {
  7. assertEquals(TriangleChecker.TriangleType.NORMAL, TriangleChecker.checkTriangle(5, 6, 7));
  8. }
  9. @Test
  10. void checkGleichseitig() {
  11. assertEquals(TriangleChecker.TriangleType.EQUILATERAL, TriangleChecker.checkTriangle(1,1,1));
  12. }
  13. }