Skip to content

Commit f465550

Browse files
committed
formatted tests arguments
1 parent 0fff273 commit f465550

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

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

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,7 @@ void testGetLongestArithmeticSubsequenceLength(int[] nums, int expected) {
1616
}
1717

1818
private static Stream<Arguments> provideTestCases() {
19-
return Stream.of(
20-
Arguments.of(new int[] {3, 6, 9, 12, 15}, 5),
21-
Arguments.of(new int[] {1, 7, 10, 13, 14, 19}, 4),
22-
Arguments.of(new int[] {1, 2, 3, 4}, 4),
23-
Arguments.of(new int[] {}, 0), // Edge case: empty array
24-
Arguments.of(new int[] {10}, 1), // Edge case: single element
25-
Arguments.of(new int[] {9, 4, 7, 2, 10}, 3) // Random test case
26-
);
19+
return Stream.of(Arguments.of(new int[] {3, 6, 9, 12, 15}, 5), Arguments.of(new int[] {1, 7, 10, 13, 14, 19}, 4), Arguments.of(new int[] {1, 2, 3, 4}, 4),
20+
Arguments.of(new int[] {}, 0), Arguments.of(new int[] {10}, 1), Arguments.of(new int[] {9, 4, 7, 2, 10}, 3));
2721
}
2822
}

0 commit comments

Comments
 (0)