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 702B

123456789101112131415161718192021222324252627282930313233343536
  1. import org.junit.jupiter.api.Test;
  2. import static org.junit.jupiter.api.Assertions.*;
  3. class TriangleCheckerTest {
  4. @Test
  5. void checkNone() {
  6. assertEquals(TriangleChecker.TriangleType.NONE, TriangleChecker.checkTriangle(0, 0, 0));
  7. }
  8. @Test
  9. void checkNormal() {
  10. assertEquals(TriangleChecker.TriangleType.NORMAL, TriangleChecker.checkTriangle(1, 2, 3));
  11. }
  12. @Test
  13. void checkISOSCELES() {
  14. assertEquals(TriangleChecker.TriangleType.ISOSCELES, TriangleChecker.checkTriangle(1, 1, 2));
  15. }
  16. @Test
  17. void checkEQUILATERAL() {
  18. assertEquals(TriangleChecker.TriangleType.EQUILATERAL, TriangleChecker.checkTriangle(1, 1, 1));
  19. }
  20. }