|
|
|
|
|
|
|
|
assertEquals(TriangleChecker.TriangleType.EQUILATERAL,TriangleChecker.checkTriangle(1, 1, 1)); |
|
|
assertEquals(TriangleChecker.TriangleType.EQUILATERAL,TriangleChecker.checkTriangle(1, 1, 1)); |
|
|
} |
|
|
} |
|
|
@Test |
|
|
@Test |
|
|
|
|
|
void checkIsocelesTriangle(){ |
|
|
|
|
|
assertEquals(TriangleChecker.TriangleType.ISOSCELES,TriangleChecker.checkTriangle(5, 5, 1)); |
|
|
|
|
|
} |
|
|
|
|
|
@Test |
|
|
void checkNegativ() { |
|
|
void checkNegativ() { |
|
|
assertEquals(TriangleChecker.TriangleType.NONE, TriangleChecker.checkTriangle(-1, 3, 5)); |
|
|
assertEquals(TriangleChecker.TriangleType.NONE, TriangleChecker.checkTriangle(-1, 3, 5)); |
|
|
assertEquals(TriangleChecker.TriangleType.NONE, TriangleChecker.checkTriangle(3, 0, 5)); |
|
|
assertEquals(TriangleChecker.TriangleType.NONE, TriangleChecker.checkTriangle(3, 0, 5)); |