Skip to content

Commit 25f7b1f

Browse files
author
motalib-code
committed
Fix test: use triangle with actual diameter of 5.0
1 parent 8ee622e commit 25f7b1f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/test/java/com/thealgorithms/geometry/RotatingCalipersTest.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,12 @@ public class RotatingCalipersTest {
1616
void testDiameterSimpleTriangle() {
1717
List<Point> triangle = Arrays.asList(
1818
new Point(0, 0),
19-
new Point(4, 0),
20-
new Point(2, 3)
19+
new Point(3, 4),
20+
new Point(0, 4)
2121
);
2222

2323
RotatingCalipers.PointPair diameter = RotatingCalipers.diameter(triangle);
24-
assertEquals(4.0, diameter.distance, EPSILON);
24+
assertEquals(5.0, diameter.distance, EPSILON);
2525
}
2626

2727
@Test

0 commit comments

Comments
 (0)