Skip to content

Commit 3fab9b5

Browse files
committed
Fix comments
1 parent 268271d commit 3fab9b5

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

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

-5
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ public class ClosestPairTest {
99

1010
@Test
1111
public void testBuildLocation() {
12-
// Test creating a point using the buildLocation method
1312
ClosestPair cp = new ClosestPair(1);
1413
ClosestPair.Location point = cp.buildLocation(3.0, 4.0);
1514
assertNotNull(point);
@@ -19,7 +18,6 @@ public void testBuildLocation() {
1918

2019
@Test
2120
public void testCreateLocation() {
22-
// Test creating an array of locations using the createLocation method
2321
ClosestPair cp = new ClosestPair(5);
2422
ClosestPair.Location[] locations = cp.createLocation(5);
2523
assertNotNull(locations);
@@ -28,7 +26,6 @@ public void testCreateLocation() {
2826

2927
@Test
3028
public void testXPartition() {
31-
// Test xPartition method: Sorting points by x-coordinate
3229
ClosestPair cp = new ClosestPair(5);
3330
ClosestPair.Location[] points = new ClosestPair.Location[5];
3431
points[0] = cp.buildLocation(2.0, 3.0);
@@ -48,7 +45,6 @@ public void testXPartition() {
4845

4946
@Test
5047
public void testYPartition() {
51-
// Test yPartition method: Sorting points by y-coordinate
5248
ClosestPair cp = new ClosestPair(5);
5349
ClosestPair.Location[] points = new ClosestPair.Location[5];
5450
points[0] = cp.buildLocation(2.0, 3.0);
@@ -68,7 +64,6 @@ public void testYPartition() {
6864

6965
@Test
7066
public void testBruteForce() {
71-
// Test bruteForce method to handle 2 points
7267
ClosestPair cp = new ClosestPair(2);
7368
ClosestPair.Location loc1 = cp.buildLocation(1.0, 2.0);
7469
ClosestPair.Location loc2 = cp.buildLocation(4.0, 6.0);

0 commit comments

Comments
 (0)