Skip to content

test 4 failing  #4

@randalateef

Description

@randalateef

@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{

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions