Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

You are to test a program called paraphrase that takes two file names as input: > ./paraphrase in.txt out.txt The program does the following: 1.

image text in transcribed

You are to test a program called paraphrase that takes two file names as input: > ./paraphrase in.txt out.txt The program does the following: 1. Reads a string in the file in.txt 2. Searches the out.txt file for the matching string 3. Displays all the lines that contain that string. Notes: The string is any sequence of characters. See Example-1 below. The search is case sensitive. See Example-2 below. Example-1: input.txt contains CS362 and out.txt contains Welcome To CS362 Software EngineeringI > ./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: in this example, no output was displayed because paraphrase did not match cs362 with the line containing the string CS362. Deliverables 1. Describe how you would test paraphrase. Try to cover as many as different scenarios, including valid (good/positive), invalid (badegative), and boundary cases. (40 points) 2. Describe how you would check the correctness of the output. (10 points) 3. Describe how you would 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

Databases Illuminated

Authors: Catherine M. Ricardo, Susan D. Urban, Karen C. Davis

4th Edition

1284231585, 978-1284231588

More Books

Students also viewed these Databases questions