Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

> ./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.

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

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

Part-2) 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 (25 points)

check the correctness of the output (10 points)

check if your tests are thorough. (10 points)

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

Recommended Textbook for

Essentials of Database Management

Authors: Jeffrey A. Hoffer, Heikki Topi, Ramesh Venkataraman

1st edition

133405680, 9780133547702 , 978-0133405682

More Books

Students also viewed these Databases questions

Question

Why is the System Build Process an iterative process?

Answered: 1 week ago