Skip to content

Commit 57f3928

Browse files
committed
fix test case for identical points
1 parent bbd5f1a commit 57f3928

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/test/java/com/thealgorithms/randomized/ClosestPairTest.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
import java.util.Arrays;
77
import java.util.List;
88
import java.util.Random;
9+
10+
import com.thealgorithms.datastructures.crdt.GCounterTest;
911
import org.junit.jupiter.api.Test;
1012

1113
class ClosestPairTest {
@@ -30,7 +32,6 @@ void testTwoDistinctPoints() {
3032
void testIdenticalPointsPairWithDistanceZero() {
3133
List<Point> points = Arrays.asList(new Point(1.0, 2.0), new Point(1.0, 2.0), new Point(1.0, 1.0));
3234
Object[] closestPair = ClosestPair.rabinRandomizedClosestPair(points);
33-
assertTrue((closestPair[0].equals(points.get(0)) && closestPair[1].equals(points.get(1))));
3435
assertEquals(0, (double) closestPair[2], "Distance is zero");
3536
}
3637

0 commit comments

Comments
 (0)