1234567891011121314151617181920212223242526272829303132 |
- import org.junit.Test;
- import static org.junit.Assert.*;
-
- public class TriangleCheckerTest {
-
- @Test
- public void testValidTriangle() {
-
- // Arrange
- float a = 2;
- float b = 3;
- float c = 4;
- float d = 12;
- float e = 32;
- float f = 7;
- float h = 11;
- float g = 41;
- float i = 4;
-
-
- // Assert
- assertTrue(TriangleChecker.checkTriangleType(a, b, c));
- assertFalse(TriangleChecker.checkTriangleType(a, d, c));
- assertTrue(TriangleChecker.checkTriangleType(e, d, e));
- assertFalse(TriangleChecker.checkTriangleType(a, f, h));
- assertFalse(TriangleChecker.checkTriangleType(i, c, d));
- assertFalse(TriangleChecker.checkTriangleType(g, i, d));
-
-
- }
-
- }
|