cse15l-lab-reports

Lab Report 5

For this lab report, I will be referring to the two test in that my impementation and the implementation, provided in lab 9, of the markdown-parser which had different answers.

Click here to get access to the implementation provided for lab 9.

Test 1

For this test I will be referring to test file 482.

Click here to access the test file.

How did I find this test file with a different result?

Expected ouptut

Fix

it should be:

else if (!markdown.substring(closeBracket,closeBarcket+1).equals("("))

Test 2

For this test I will be referring to test file 483.

Click here to access the test file.

How did I find this test file with a different result?

Expected ouptut

Fix

image

In order to fix the provided implementation, in the screenshot above, it is checking for the open and closed brackets. In the highlighted part, we can add an if statement checking for any characters in between the brackets. If it does not have any, then do not add it the link, if it does, add the link.