forked from cse15lss122/markdown-parser
-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
@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
| public void getCorrectLinks4() throws IOException{ |
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels