cse15l-lab-reports

Lab Report 2

Image

This bug occured because we added a statement to catch cases where the link included parenthesis but it didn’t work for normal links so we removed it.

Test File: test-file.md

Image

We removed that if statment, which checks for a close parentheses in the link.The bug is that it only works in the case that there was a parenthesis in the link, but when given two normal links it will produce the wrong output. The symptom is that it gives the first link, then gives the markdown command for a link.

Bug 2: Out of bounds exception

Image

Test file: test-file4.md

Image

We added that if statement to check if there was a link but no brackets. If that were the case we return an empty string rather than running in to an out of bounds exception.

Image

Test file: test-file2.md

This is what the links were when the first link was expected to contain a parenthesis. Image

This is what we wanted when calling the link.

Image

The bug is that it only considers everything in between the first open and close parenthesis, so when having a link with a parenthesis it will cut off the rest of the link after the first closeParentheses.