Browse Source

Stand 001/14.10/15:56

main
Tim Rummel 1 month ago
parent
commit
f0ef829bce
1 changed files with 10 additions and 0 deletions
  1. 10
    0
      TestTriangle/TriangleCheckerTest.java

+ 10
- 0
TestTriangle/TriangleCheckerTest.java View File

float c = 5; float c = 5;


TriangleChecker.TriangleType result = TriangleChecker.checkTriangle(a, b, c); TriangleChecker.TriangleType result = TriangleChecker.checkTriangle(a, b, c);
System.out.println(result);


assertEquals(TriangleChecker.TriangleType.NORMAL, result, "Normales Dreieck"); assertEquals(TriangleChecker.TriangleType.NORMAL, result, "Normales Dreieck");

float d = 4;
float e = 4;
float f = 4;

TriangleChecker.TriangleType result2 = TriangleChecker.checkTriangle(d, e, f);
System.out.println(result2);

assertEquals(TriangleChecker.TriangleType.EQUILATERAL, result2, "Gleichseitiges");
} }
} }

Loading…
Cancel
Save