Skip to content

Commit 780de0b

Browse files
committed
Formatted maxSumKSizeSubarrayTest with clang-format
1 parent 1be07c9 commit 780de0b

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/test/java/com/thealgorithms/slidingwindow/maxSumKSizeSubarrayTest.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
package com.thealgorithms.slidingwindow;
22

33
import static org.junit.jupiter.api.Assertions.assertEquals;
4+
45
import org.junit.jupiter.api.Test;
56

67
/**
@@ -40,7 +41,7 @@ void testMaxSumKSizeSubarrayWithInsufficientElements() {
4041
int[] arr = {1, 2};
4142
int k = 3; // Not enough elements
4243
int expectedMaxSum = -1; // Edge case
43-
assertEquals(expectedMaxSum, SlidingWindow.maxSumKSizeSubarray(arr, k));
44+
assertEquals(expectedMaxSum, SlidingWindow.maxSumKSizeSubarray(arr, k));
4445
}
4546

4647
/**
@@ -62,7 +63,7 @@ void testMaxSumKSizeSubarrayWithNegativeNumbers() {
6263
int[] arr = {-1, -2, -3, -4, -5};
6364
int k = 2;
6465
int expectedMaxSum = -3; // -1 + -2
65-
assertEquals(expectedMaxSum, SlidingWindow.maxSumKSizeSubarray(arr, k));
66+
assertEquals(expectedMaxSum, SlidingWindow.maxSumKSizeSubarray(arr, k));
6667
}
6768

6869
/**
@@ -73,6 +74,6 @@ void testMaxSumKSizeSubarrayWithKEqualToArrayLength() {
7374
int[] arr = {1, 2, 3, 4, 5};
7475
int k = 5;
7576
int expectedMaxSum = 15; // 1 + 2 + 3 + 4 + 5
76-
assertEquals(expectedMaxSum, SlidingWindow.maxSumKSizeSubarray(arr, k));
77+
assertEquals(expectedMaxSum, SlidingWindow.maxSumKSizeSubarray(arr, k));
7778
}
7879
}

0 commit comments

Comments
 (0)