Skip to content

Commit e1b9123

Browse files
committed
Added test
1 parent 051299f commit e1b9123

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/test/java/g3401_3500/s3462_maximum_sum_with_at_most_k_elements/SolutionTest.java

+7
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,11 @@ void maxSum2() {
1919
new Solution().maxSum(new int[][] {{5, 3, 7}, {8, 2, 6}}, new int[] {2, 2}, 3),
2020
equalTo(21L));
2121
}
22+
23+
@Test
24+
void maxSum3() {
25+
assertThat(
26+
new Solution().maxSum(new int[][] {{}}, new int[] {2, 2}, 3),
27+
equalTo(0L));
28+
}
2229
}

0 commit comments

Comments
 (0)