We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8ee622e commit 25f7b1fCopy full SHA for 25f7b1f
src/test/java/com/thealgorithms/geometry/RotatingCalipersTest.java
@@ -16,12 +16,12 @@ public class RotatingCalipersTest {
16
void testDiameterSimpleTriangle() {
17
List<Point> triangle = Arrays.asList(
18
new Point(0, 0),
19
- new Point(4, 0),
20
- new Point(2, 3)
+ new Point(3, 4),
+ new Point(0, 4)
21
);
22
23
RotatingCalipers.PointPair diameter = RotatingCalipers.diameter(triangle);
24
- assertEquals(4.0, diameter.distance, EPSILON);
+ assertEquals(5.0, diameter.distance, EPSILON);
25
}
26
27
@Test
0 commit comments