Week 10 Lab Report
Chester James Ramos
Reposititory
How I found my test
I found my test through running a print statement on the given implementation in week 9 to show all the link list. Heres a picture of the code i ran and the output.
From there I manual tested randoms ones and compared the outputs on my own implementation by just adding the file and creating a test in
MarkdownParseTest.
Test 1
For this one I choose test file 495: Link for test file 495
My output: (Ignore the comparison)

Given repository output:

The correct one is the given repository output as shown in commonmark
and the given link or output will be next to href in the image below

Problem/Fix
The problem that has to fixed here is the checking of parentheses. As shown here the code is only checking for the first sighting of a openign parentheses and the first sighting of a closing parentheses. So to fix this it should look for the first sighting of an opening parentheses and the last sighting of a closing parentheses.
Test 2
For this one I choose test file 519: Link for test file
My output:
Given repository output:

The correct one is my repository output as shown in commonmark
Since there is no href there should be no links as shown below

Problem/Fix
The problem here is that it the implementation doesn’t check for exclaimation marks before the open bracket. As shown here it just looks for the open brackets and moves forward from there instead of checking the letter before the opening bracket. To fix this just create an if statement to check after it finds an open bracket if the character before it is an exclaimation point.