Skip to content

Commit c286497

Browse files
committed
Added test
1 parent 05e4995 commit c286497

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

src/test/java/g3301_3400/s3366_minimum_array_sum/SolutionTest.java

+14
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,18 @@ void minArraySum() {
1515
void minArraySum2() {
1616
assertThat(new Solution().minArraySum(new int[] {2, 4, 3}, 3, 2, 1), equalTo(3));
1717
}
18+
19+
@Test
20+
void minArraySum3() {
21+
assertThat(
22+
new Solution()
23+
.minArraySum(
24+
new int[] {
25+
1, 3, 5, 7, 9, 12, 12, 12, 13, 15, 15, 15, 16, 17, 19, 20
26+
},
27+
11,
28+
15,
29+
4),
30+
equalTo(77));
31+
}
1832
}

0 commit comments

Comments
 (0)