Skip to content

Commit b559923

Browse files
committed
Removing all CheckStyle issues
1 parent 77ba83e commit b559923

File tree

1 file changed

+5
-16
lines changed

1 file changed

+5
-16
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,25 @@
11
package com.thealgorithms.searches;
22

33
import static org.junit.jupiter.api.Assertions.assertArrayEquals;
4+
45
import org.junit.jupiter.api.Test;
56

67
public class TestSearchInARowAndColWiseSortedMatrix {
78
@Test
89
public void searchItem() {
9-
int[][] matrix = {
10-
{ 3, 4, 5, 6, 7 },
11-
{ 8, 9, 10, 11, 12 },
12-
{ 14, 15, 16, 17, 18 },
13-
{ 23, 24, 25, 26, 27 },
14-
{ 30, 31, 32, 33, 34 }
15-
};
10+
int[][] matrix = {{3, 4, 5, 6, 7}, {8, 9, 10, 11, 12}, {14, 15, 16, 17, 18}, {23, 24, 25, 26, 27}, {30, 31, 32, 33, 34}};
1611
var test = new SearchInARowAndColWiseSortedMatrix();
1712
int[] res = test.search(matrix, 16);
18-
int[] expectedResult = { 2, 2 };
13+
int[] expectedResult = {2, 2};
1914
assertArrayEquals(expectedResult, res);
2015
}
2116

2217
@Test
2318
public void notFound() {
24-
int[][] matrix = {
25-
{ 3, 4, 5, 6, 7 },
26-
{ 8, 9, 10, 11, 12 },
27-
{ 14, 15, 16, 17, 18 },
28-
{ 23, 24, 25, 26, 27 },
29-
{ 30, 31, 32, 33, 34 }
30-
};
19+
int[][] matrix = {{3, 4, 5, 6, 7}, {8, 9, 10, 11, 12}, {14, 15, 16, 17, 18}, {23, 24, 25, 26, 27}, {30, 31, 32, 33, 34}};
3120
var test = new SearchInARowAndColWiseSortedMatrix();
3221
int[] res = test.search(matrix, 96);
33-
int[] expectedResult = { -1, -1 };
22+
int[] expectedResult = {-1, -1};
3423
assertArrayEquals(expectedResult, res);
3524
}
3625
}

0 commit comments

Comments
 (0)