Browse Source

new program

master
Johannes Weichelt 2 years ago
parent
commit
0fa3277440
2 changed files with 3 additions and 3 deletions
  1. 1
    1
      src/TriangleChecker.java
  2. 2
    2
      test/TriangleCheckerTest.java

+ 1
- 1
src/TriangleChecker.java View File



// Analyse der Dreiecksart // Analyse der Dreiecksart
public static TriangleType checkTriangle(float a, float b, float c) { public static TriangleType checkTriangle(float a, float b, float c) {
return TriangleType.NONE;
return TriangleType.NORMAL;
} }
} }

+ 2
- 2
test/TriangleCheckerTest.java View File

public void testValidTriangle() { public void testValidTriangle() {


// Arrange // Arrange
float a = 2;
float a = 7;
float b = 3; float b = 3;
float c = 4;
float c = 1;


// Act // Act
TriangleChecker.TriangleType type = TriangleChecker.checkTriangle(a, b, c); TriangleChecker.TriangleType type = TriangleChecker.checkTriangle(a, b, c);

Loading…
Cancel
Save