https://github.com/a3alani/markdown-parser/blob/main/MarkdownParse.java
Notes)
The following screenshot includes the failure indcuing tests inputs followed by screenshots of the test file and terminal output
- First failure inducing test:
https://github.com/a3alani/markdown-parser/blob/main/test2.md
I added double brackets at the end of the link url This caused MarkdownParse.java to go in an infinite loop when running.
- Second failure inducing test:
https://github.com/a3alani/markdown-parser/blob/main/test3.md
I added curly brackets around the link url instead of parathesis. This caused MarkdownParse.java to throw an indexoutofbound exception.
- Third failure inducing test:
https://github.com/a3alani/markdown-parser/blob/main/test4.md
I did not add a parathesis before the link url and only after which caused the output of the wrong output.
- Another failure inducing test: (trying to cover other cases and replace incase any of my main 3 are not valid)
I added a new empty line after the link which caused the program to go into an infinite loop
I did not add a parenthesis at the end of the url link
General Definition:
A bug is a flaw in the computer system that may have zero or many symptoms. While a symptom is a faulty program behavior. As for the failure inducing input it causes the bug to excute and symptoms to appear.
-
For the first test, the failure inducing input was adding the second parathesis at the end of the url link. That caused the bug to execute and the symptom to appear as the program went into an infnite loop.
-
For the second test, the failure inducing input of replacing the paraenthesis with curly brackets caused the program bug to execute because the parathesis was not detected as expected. That caused the symptom to appear and throw and indexOutOfBound exception in the terminal
-
For the third test, the failure inducing input of not adding a parathesis before the url link did not cause a bug but instead resulted in a wrong output than expected
-
For the fourth test, the failure inducing input of adding an empty line after the url caused a bug and resulted the program to go into an infinite loop.
-
As for the last test, failure inducing input of not having a closing parenthesis also caused a bug that resulted in a symptom of an infinite loop.