Skip to content

Commit 85d76b9

Browse files
committed
Fix
1 parent 7b09785 commit 85d76b9

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/test/java/com/thealgorithms/misc/ThreeSumProblemTest.java

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,39 +18,39 @@ public void setup() {
1818
}
1919

2020
@Test
21-
public void testBruteForce_ValidTriplets() {
21+
public void testBruteForceValidTriplets() {
2222
int[] nums = {1, 2, -3, 4, -2, -1};
2323
int target = 0;
2424
List<List<Integer>> expected = Arrays.asList(Arrays.asList(-3, 1, 2), Arrays.asList(-3, -1, 4));
2525
assertEquals(expected, tsp.bruteForce(nums, target));
2626
}
2727

2828
@Test
29-
public void testBruteForce_NoTripletFound() {
29+
public void testBruteForceNoTripletFound() {
3030
int[] nums = {1, 2, 3, 4, 5};
3131
int target = 50; // No valid triplet exists
3232
List<List<Integer>> expected = new ArrayList<>(); // Expecting an empty list
3333
assertEquals(expected, tsp.bruteForce(nums, target));
3434
}
3535

3636
@Test
37-
public void testTwoPointer_ValidTriplets() {
37+
public void testTwoPointerValidTriplets() {
3838
int[] nums = {0, -1, 2, -3, 1};
3939
int target = 0;
4040
List<List<Integer>> expected = Arrays.asList(Arrays.asList(-3, 1, 2), Arrays.asList(-1, 0, 1));
4141
assertEquals(expected, tsp.twoPointer(nums, target));
4242
}
4343

4444
@Test
45-
public void testTwoPointer_NegativeNumbers() {
45+
public void testTwoPointerNegativeNumbers() {
4646
int[] nums = {-5, -4, -3, -2, -1};
4747
int target = -10;
4848
List<List<Integer>> expected = Arrays.asList(Arrays.asList(-5, -4, -1), Arrays.asList(-5, -3, -2));
4949
assertEquals(expected, tsp.twoPointer(nums, target));
5050
}
5151

5252
@Test
53-
public void testHashMap_ValidTriplets() {
53+
public void testHashMapValidTriplets() {
5454
int[] nums = {1, 2, -1, -4, 3, 0};
5555
int target = 2;
5656
List<List<Integer>> expected = Arrays.asList(Arrays.asList(-1, 0, 3), Arrays.asList(-1, 1, 2) // Check for distinct triplets
@@ -59,15 +59,15 @@ public void testHashMap_ValidTriplets() {
5959
}
6060

6161
@Test
62-
public void testHashMap_NoTripletFound() {
62+
public void testHashMapNoTripletFound() {
6363
int[] nums = {5, 7, 9, 11};
6464
int target = 10;
6565
List<List<Integer>> expected = new ArrayList<>();
6666
assertEquals(expected, tsp.hashMap(nums, target));
6767
}
6868

6969
@Test
70-
public void testHashMap_EmptyArray() {
70+
public void testHashMapEmptyArray() {
7171
int[] nums = {};
7272
int target = 0;
7373
List<List<Integer>> expected = new ArrayList<>();

0 commit comments

Comments
 (0)