This commit is contained in:
Oliver
2021-12-13 10:48:20 +01:00
commit 57ef7d2739
7 changed files with 172 additions and 0 deletions
+22
View File
@@ -0,0 +1,22 @@
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;
// Act
TriangleChecker.TriangleType type = TriangleChecker.checkTriangle(a, b, c);
// Assert
assertEquals(TriangleChecker.TriangleType.NORMAL, type);
}
}