Skip to content

Issues To Fix#19

Open
reisandylamdjani wants to merge 33 commits intonidhidhamnani:mainfrom
Miyuki-L:main
Open

Issues To Fix#19
reisandylamdjani wants to merge 33 commits intonidhidhamnani:mainfrom
Miyuki-L:main

Conversation

@reisandylamdjani
Copy link

https://github.com/Miyuki-L/markdown-parser/blob/c5001a6b54bcd55263bd944a1d4ce1473598d748/MarkdownParse.java#L29-L30

For these lines, you can probably delete to make the file cleaner or any comments that you don't need

Miyuki-L and others added 30 commits April 14, 2022 10:37
Intention is that image should not be counted as URLs of links
Original program treated image source link as url links as well which it shouldn't but not it does not count image source links as urls.
Original fix on not making the file identify image links caused another bug that made the program no identify actual links that are also in that file.
Fixed bug where when at least one of [,],(,) isn't found then not possible to have an link so stops the search. CAUTION HOW EVER THE WAY THAT THE IF STATEMENTS ARE SETUP FALSE LINKS MAY TRIGGER A TRUE FOR ONE OF THE IF STATEMENTS SO NEED TO REFACTOR THE CHECKS.
To Run Test/JUnit test in the terminal

javac -cp ".;lib\junit-4.13.2.jar;lib\hamcrest-core-1.3.jar" MarkdownParseTest.java
java -cp ".;lib/junit-4.13.2.jar;lib/hamcrest-core-1.3.jar" org.junit.runner.JUnitCore MarkdownParseTest

adjust Junit Versions as needed.
Path fileName = Path.of("test-file.md");

this link doesn't work when running JUnit through VSCode. to run it through VSCode's testing you need to give the full path. but this works in terminal running.
Changed the fileNames such that the running Junit test using VSCode testing works and terminal testing also works.
Failure-inducing input fixed:
       links where the [] area was empty but was treated as a link
Symptom shown: wrong answer symptom
bug that fixed the symptom:
   checking that the open and close brackets are not right next to each other.
Originally had link then image but was supposed to be image then link
Reverting changes for the purpose of the task of the lab
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants