12345678910111213141516171819202122 |
- import org.junit.Test;
- import static org.junit.Assert.*;
-
- public class TriangleCheckerTest {
-
- @Test
- public void testValidTriangle() {
-
- // Arrange
- float a = 2;
- float b = 2;
- float c = 2;
-
- // Act
- TriangleChecker.TriangleType type = TriangleChecker.checkTriangle(a, b, c);
-
- // Assert
- assertEquals(TriangleChecker.TriangleType.EQUILATERAL, type);
-
- }
-
- }
|