File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
src/test/java/com/thealgorithms/slidingwindow Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 5
5
import org .junit .jupiter .api .Test ;
6
6
7
7
/**
8
- * Unit tests for the LongestSubstringWithoutRepeatingCharacters class.
8
+ * Unit tests for the MinimumWindowSubstring class.
9
9
*
10
10
* @author (https://github.com/Chiefpatwal)
11
11
*/
12
12
public class MinimumWindowSubstringTest {
13
13
14
14
/**
15
- * Tests for the longest subarray with a sum less than or equal to k .
15
+ * Tests for MinimumWindowSubstring.minWindow .
16
16
*/
17
17
@ Test
18
18
public void testMinimumWindowSubstring () {
19
- assertEquals (3 , MinimumWindowSubstring .minWindow ("ADOBECODEBANC" ,"ABC" ); // "BANC"
20
- assertEquals (4 , MinimumWindowSubstring .minWindow ("a" ,"a" ); // "a"
21
- assertEquals (2 , MinimumWindowSubstring .minWindow ("a" ,"aa" // ""
19
+ assertEquals (4 , MinimumWindowSubstring .minWindow ("ADOBECODEBANC" , "ABC" ) ); // "BANC"
20
+ assertEquals (1 , MinimumWindowSubstring .minWindow ("a" , "a" ) ); // "a"
21
+ assertEquals (0 , MinimumWindowSubstring .minWindow ("a" , "aa" )); // ""
22
22
}
23
23
}
You can’t perform that action at this time.
0 commit comments