mirror of
https://github.com/TheAlgorithms/Java.git
synced 2025-07-31 00:37:15 +08:00
Format code with prettier (#3375)
This commit is contained in:
@ -4,11 +4,18 @@ import org.junit.jupiter.api.Assertions;
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
public class longestNonRepeativeSubstringTest {
|
||||
|
||||
@Test
|
||||
public void palindrome() {
|
||||
String input1 = "HelloWorld";
|
||||
String input2 = "javaIsAProgrammingLanguage";
|
||||
Assertions.assertEquals( longestNonRepeativeSubstring.lengthOfLongestSubstring( input1 ) , 5 ) ;
|
||||
Assertions.assertEquals( longestNonRepeativeSubstring.lengthOfLongestSubstring( input2 ) , 9 ) ;
|
||||
Assertions.assertEquals(
|
||||
longestNonRepeativeSubstring.lengthOfLongestSubstring(input1),
|
||||
5
|
||||
);
|
||||
Assertions.assertEquals(
|
||||
longestNonRepeativeSubstring.lengthOfLongestSubstring(input2),
|
||||
9
|
||||
);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user