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 55import org .junit .jupiter .api .Test ;
66
77/**
8- * Unit tests for the LongestSubstringWithoutRepeatingCharacters class.
8+ * Unit tests for the MinimumWindowSubstring class.
99 *
1010 * @author (https://github.com/Chiefpatwal)
1111 */
1212public class MinimumWindowSubstringTest {
1313
1414 /**
15- * Tests for the longest subarray with a sum less than or equal to k .
15+ * Tests for MinimumWindowSubstring.minWindow .
1616 */
1717 @ Test
1818 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" )); // ""
2222 }
2323}
You can’t perform that action at this time.
0 commit comments