Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Programming Language: C

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

> ./paraphrase in.txt out.txt

> Welcome to CS362 Fall 2017

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.

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

Describe how you would:

generate tests for paraphrase. (Not unit tests, just verbal explanation of how you test). Try to cover as many scenarios as possible.Keep the description of your scenarios as short as possible

check the correctness of the output

check if your tests are thorough.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions

Question

LO2 Explain the nature of the psychological contract.

Answered: 1 week ago

Question

LO1 Discuss four different views of motivation at work.

Answered: 1 week ago