Skip to content

Commit cf2c02a

Browse files
committed
Fix
1 parent 3fce134 commit cf2c02a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/test/java/com/thealgorithms/others/MaximumSumOfDistinctSubarraysWithLengthKTest.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,8 @@ void testNegativeK() {
9898
*/
9999
@Test
100100
void testNullArray() {
101-
long result = MaximumSumOfDistinctSubarraysWithLengthK.maximumSubarraySum(3, (int[]) null);
101+
int[] nullArray = null;
102+
long result = MaximumSumOfDistinctSubarraysWithLengthK.maximumSubarraySum(3, nullArray);
102103
assertEquals(0L, result);
103104
}
104105

0 commit comments

Comments
 (0)