Skip to content

test 4 failing  #4

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{

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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