|
|
|
|
|
|
|
|
void checkTriangleISOSCELES(){ |
|
|
void checkTriangleISOSCELES(){ |
|
|
assertEquals(TriangleChecker.TriangleType.ISOSCELES,TriangleChecker.checkTriangle(6,6, 2)); |
|
|
assertEquals(TriangleChecker.TriangleType.ISOSCELES,TriangleChecker.checkTriangle(6,6, 2)); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Test |
|
|
|
|
|
void checkTriangleEQUILATERAL(){ |
|
|
|
|
|
assertEquals(TriangleChecker.TriangleType.EQUILATERAL,TriangleChecker.checkTriangle(6,6, 6)); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Test |
|
|
|
|
|
void checkTriangleANegativ(){ |
|
|
|
|
|
assertEquals(TriangleChecker.TriangleType.NONE,TriangleChecker.checkTriangle(-6,6, 6)); |
|
|
|
|
|
} |
|
|
|
|
|
@Test |
|
|
|
|
|
void checkTriangleBNegativ(){ |
|
|
|
|
|
assertEquals(TriangleChecker.TriangleType.NONE,TriangleChecker.checkTriangle(6,-6, 6)); |
|
|
|
|
|
} |
|
|
|
|
|
@Test |
|
|
|
|
|
void checkTriangleCNegativ(){ |
|
|
|
|
|
assertEquals(TriangleChecker.TriangleType.NONE,TriangleChecker.checkTriangle(6,6, -6)); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Test |
|
|
|
|
|
void checkTriangleAToLong(){ |
|
|
|
|
|
assertEquals(TriangleChecker.TriangleType.NONE,TriangleChecker.checkTriangle(36,6, 6)); |
|
|
|
|
|
} |
|
|
|
|
|
@Test |
|
|
|
|
|
void checkTriangleBToLong(){ |
|
|
|
|
|
assertEquals(TriangleChecker.TriangleType.NONE,TriangleChecker.checkTriangle(6,46, 6)); |
|
|
|
|
|
} |
|
|
|
|
|
@Test |
|
|
|
|
|
void checkTriangleCToLong(){ |
|
|
|
|
|
assertEquals(TriangleChecker.TriangleType.NONE,TriangleChecker.checkTriangle(6,6, 56)); |
|
|
|
|
|
} |
|
|
} |
|
|
} |