Skip to content

Commit d5c2fe3

Browse files
committed
Added constant sequence test
1 parent 225307e commit d5c2fe3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,6 @@ void testGetLongestArithmeticSubsequenceLengthThrowsForNullInput() {
2929
}
3030

3131
private static Stream<Arguments> provideTestCases() {
32-
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), Arguments.of(new int[] {}, 0), Arguments.of(new int[] {10}, 1), Arguments.of(new int[] {9, 4, 7, 2, 10}, 3));
32+
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), Arguments.of(new int[] {}, 0), Arguments.of(new int[] {10}, 1), Arguments.of(new int[] {9, 4, 7, 2, 10}, 3), Arguments.of(new int[] {1, 2, 2, 2, 2, 5}, 4));
3333
}
3434
}

0 commit comments

Comments
 (0)