From afc3689a10613b4a782068b3a164a0d23905a746 Mon Sep 17 00:00:00 2001 From: Djonge Date: Thu, 23 Apr 2020 17:29:45 +0200 Subject: [PATCH] defined unittests angepasst --- src/test/java/de/hsel/sqs/WhiteboxTest.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/test/java/de/hsel/sqs/WhiteboxTest.java b/src/test/java/de/hsel/sqs/WhiteboxTest.java index 4257c78..c7e9c47 100644 --- a/src/test/java/de/hsel/sqs/WhiteboxTest.java +++ b/src/test/java/de/hsel/sqs/WhiteboxTest.java @@ -40,12 +40,12 @@ public class WhiteboxTest { assertEquals(TriangleType.EQUILATERAL_TRIANGLE, TriangleChecker.checkTriangle(5, 5, 5)); assertEquals(TriangleType.ISOSCELESS_TRIANGLE, TriangleChecker.checkTriangle(5, 5, 3)); - assertEquals(TriangleType.NO_TRIANGLE, TriangleChecker.checkTriangle(7, 3, 3)); + assertEquals(TriangleType.ISOSCELESS_TRIANGLE, TriangleChecker.checkTriangle(6, 4, 6)); - assertEquals(TriangleType.NO_TRIANGLE, TriangleChecker.checkTriangle(2, 2, 5)); + assertEquals(TriangleType.ISOSCELESS_TRIANGLE, TriangleChecker.checkTriangle(2, 2, 3)); assertEquals(TriangleType.ISOSCELESS_TRIANGLE, TriangleChecker.checkTriangle(5, 7, 5)); - assertEquals(TriangleType.NO_TRIANGLE, TriangleChecker.checkTriangle(7, 3, 3)); - assertEquals(TriangleType.NO_TRIANGLE, TriangleChecker.checkTriangle(2, 1, 5)); + assertEquals(TriangleType.ISOSCELESS_TRIANGLE, TriangleChecker.checkTriangle(5, 3, 3)); + assertEquals(TriangleType.SCALENE_TRIANGLE, TriangleChecker.checkTriangle(4, 3, 5)); assertEquals(TriangleType.NO_TRIANGLE, TriangleChecker.checkTriangle(4, 2, 7)); assertEquals(TriangleType.NO_TRIANGLE, TriangleChecker.checkTriangle(4, 8, 3));