Skip to content

Latest commit

 

History

History
55 lines (39 loc) · 1.85 KB

lab-report-4-week-8.md

File metadata and controls

55 lines (39 loc) · 1.85 KB

Lab Report 4

Snippet 1

Test for Snippet 1:

Test for Snippet 1 It should produce only 'another link' as a link, which I saw on commonmark.org

Output of the test on my repo:

Test Fail Snippet 1 There is a failure.

Output of the test on their repo:

Test Fail Snippet 1 There is a failure.

How I Can Change My Code

I can try to make sure the link is not outputted if there is a backtick without a pair. Only the links with pairs, not backticks without a pair, will be outputted.

Snippet 2

Test for Snippet 2:

Test for Snippet 2 It should produce all links except the b.com one.

Output of the test on my repo:

Test Fail Snippet 2 There is a failure.

Output of the test on their repo:

Test Fail Snippet 2 There is a failure.

How I Can Change My Code

I can make sure that links with a opening parenthesis without a corresponding closing one will not be outputted.

Snippet 3

Test for Snippet 3:

Test for Snippet 3 It should produce only the link for the CSE schedule.

Output of the test on my repo:

Test Fail Snippet 3 There is a failure.

Output of the test on their repo:

Test Fail Snippet 3 There is a failure.

How I Can Change My Code

Because the issue was caused by linebreaks and extra spaces, I can code my MarkdownParse to make sure that it does not count linebreaks or large gaps in its parsing.