Skip to content

Commit 8ee622e

Browse files
author
motalib-code
committed
Fix test: correct expected diameter value from 5.0 to 4.0
1 parent beb1db6 commit 8ee622e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ void testDiameterSimpleTriangle() {
2121
);
2222

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

2727
@Test

0 commit comments

Comments
 (0)