|
|
@@ -19,11 +19,11 @@ public class TriangleCheckerTest { |
|
|
|
} |
|
|
|
|
|
|
|
@Test |
|
|
|
public void testEqualTriangle(){ |
|
|
|
public void testIsoTriangle(){ |
|
|
|
// Arrange |
|
|
|
float a = 3; |
|
|
|
float b = 3; |
|
|
|
float c = 3; |
|
|
|
float c = 2; |
|
|
|
|
|
|
|
// Act |
|
|
|
TriangleChecker.TriangleType type = TriangleChecker.checkTriangle(a, b, c); |
|
|
@@ -32,6 +32,18 @@ public class TriangleCheckerTest { |
|
|
|
assertEquals(TriangleChecker.TriangleType.ISOSCELES, type); |
|
|
|
} |
|
|
|
|
|
|
|
@Test |
|
|
|
public void testEqualTriangle(){ |
|
|
|
// Arrange |
|
|
|
float a = 3; |
|
|
|
float b = 3; |
|
|
|
float c = 3; |
|
|
|
|
|
|
|
// Act |
|
|
|
TriangleChecker.TriangleType type = TriangleChecker.checkTriangle(a, b, c); |
|
|
|
|
|
|
|
// Assert |
|
|
|
assertEquals(TriangleChecker.TriangleType.EQUILATERAL, type); |
|
|
|
} |
|
|
|
|
|
|
|
} |