Question: You are to test a program paraphrase that takes as input two strings, as follows: > ./paraphrase in.txt out.txt The program reads a simple string

You are to test a program paraphrase that takes as input two strings, as follows:

> ./paraphrase in.txt out.txt

The program reads a simple string in the file in.txt and searches the file out.txt, line by line, for the string and displays all the lines that contain that string.

- The string is any sequence of characters. Look @ Example-1

-The search that paraphrase performs is case sensitive. Look @ Example-2

Example-1: input.txt contains CS362 and out.txt contains Welcome To CS362 Software Engineering II

> ./paraphrase in.txt out.txt

>Welcome To CS362 Software Engineering II

Note: in this example, the line in the file out.txt containing the string CS362 was displayed as output.

Example-2: input.txt contains cs362 and out.txt contains Welcome To CS362

> ./paraphrase in.txt out.txt

>

Note: We see that No output was displayed because paraphrase did not match cs362 with the line containing the string CS362.

------------------------------------------------------------------

Part-1) Are there further questions about the specification of paraphrase you would like to have answered? Is the description + example enough to specify output? (10 points)

Part-2) : Generate tests for paraphrase. Not unit tests, just verbal explanation of how you test paraphrase. Try to cover as many scenarios as possible. Keep the description of your scenarios as short as possible (30 points)

Describe how you would check the correctness of the output (10 points)

Describe how you would check if your tests are thorough. (10 points)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!