Skip to content

Commit c2ba818

Browse files
committed
Format test cases in LongestIncreasingSubsequenceNLogNTest for improved readability
1 parent cb7edc8 commit c2ba818

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

src/test/java/com/thealgorithms/dynamicprogramming/LongestIncreasingSubsequenceNLogNTest.java

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
import static org.junit.jupiter.api.Assertions.assertEquals;
44

55
import java.util.stream.Stream;
6+
67
import org.junit.jupiter.params.ParameterizedTest;
78
import org.junit.jupiter.params.provider.Arguments;
89
import org.junit.jupiter.params.provider.MethodSource;
@@ -11,14 +12,14 @@ public class LongestIncreasingSubsequenceNLogNTest {
1112

1213
private static Stream<Arguments> provideTestCases() {
1314
return Stream.of(
14-
Arguments.of(new int[] {10, 9, 2, 5, 3, 7, 101, 18}, 4),
15-
Arguments.of(new int[] {0, 1, 0, 3, 2, 3}, 4),
16-
Arguments.of(new int[] {7, 7, 7, 7, 7}, 1),
17-
Arguments.of(new int[] {1, 3, 5, 4, 7}, 4),
18-
Arguments.of(new int[] {}, 0),
19-
Arguments.of(new int[] {10}, 1),
20-
Arguments.of(new int[] {3, 10, 2, 1, 20}, 3),
21-
Arguments.of(new int[] {50, 3, 10, 7, 40, 80}, 4)
15+
Arguments.of(new int[]{10, 9, 2, 5, 3, 7, 101, 18}, 4),
16+
Arguments.of(new int[]{0, 1, 0, 3, 2, 3}, 4),
17+
Arguments.of(new int[]{7, 7, 7, 7, 7}, 1),
18+
Arguments.of(new int[]{1, 3, 5, 4, 7}, 4),
19+
Arguments.of(new int[]{}, 0),
20+
Arguments.of(new int[]{10}, 1),
21+
Arguments.of(new int[]{3, 10, 2, 1, 20}, 3),
22+
Arguments.of(new int[]{50, 3, 10, 7, 40, 80}, 4)
2223
);
2324
}
2425

0 commit comments

Comments
 (0)