@test
public void getCorrectLinks4() throws IOException{
String content = Files.readString(Path.of("test-file4.md"));
assertEquals(List.of(""),MarkdownParse.getLinks(content));
}
getCorrectLinks4(MarkdownParseTest)
java.lang.StringIndexOutOfBoundsException: Range [0, -1) out of bounds for length 27
I suggested adding an if and break statement in MarkdownParse.java to check for index -1.
|
public void getCorrectLinks4() throws IOException{ |
@test
public void getCorrectLinks4() throws IOException{
String content = Files.readString(Path.of("test-file4.md"));
assertEquals(List.of(""),MarkdownParse.getLinks(content));
}
getCorrectLinks4(MarkdownParseTest)
java.lang.StringIndexOutOfBoundsException: Range [0, -1) out of bounds for length 27
I suggested adding an if and break statement in MarkdownParse.java to check for index -1.
markdown-parser1/MarkdownParseTest.java
Line 44 in 258e64b