CS 596 Assignment 4 Test Data
SDSU CS 596
Fall Semester, 1998
Assignment 4 Test Data
To Assignment Index
San Diego State University -- This page last updated 17-Nov-98


Create two input files: call them A and B. The contents of the these files are given below. The first and last character in each file is the double quote (") character. File A contains two lines of text.

Contents of A
"Please do not
shout!"

Contents of B
"TeXt FrOm a FilE."

The Tests
For each of the tests 1 - 3 use the same configuration file. The configuration file should state that: the output file has the base name third, the input and output are not compressed, the output is to be converted to all lowercase. Run all tests from the same directory, preferable a directory containing only your configuration and input files.

Test 1. Use file A as the input source. Send the output to an output file with the base name first. Compress the text, do not convert it to lower case. Note this requires you to override the configuration file settings.

Test 2. Use the output file from test 1 as the input. Send the output to an output file with the base name second. Uncompress the text and convert the text to all uppercase. Do not compress the output. Note this requires you to override the configuration file settings. You may have exit the program and restart it between test 1 and test 2.

Test 3. Restart your program, using the defaults in the configuration file. You will use three separate input sources in the following order: keyboard, socket, and file B. Use any socket number that works. The input text for the keyboard and socket is given below. The first and last character in both cases is the double quote character. The keyboard input contains three lines of text, the socket input contains two lines of text.

Keyboard Input
"Hi Mom &
Dad
BYE!"

Socket Input
"Message FROM a SOCKET
OVER"

Test 4. This test is for those of you that are doing the optional part of the assignment. Input and output are not compressed. Do not change the case of the text. Use what ever configuration file you like. Use what ever input source you like: keyboard, socket or file. Use the output file with the base name fourth. The input text, pattern and replacement are given below.

Textcat rat catty cots
Patternc(.)t(.)
Replacement B$2H$1

What to turn in from the Tests
After you have run the all the tests show a listing of the directory in which you ran the tests, the contents of the output files created in tests 2 - 4, and the contents of configuration file used in tests 1 - 3. Show them in the order listed (directory listing, out files, then configuration file. Show the contents of output file(s) from test 2, then from test 3 and then from test 4 (if it exists). Place these test results immediately after your cover sheet and before the documentation and source code of the assignment.

Copyright © 1998 SDSU & Roger Whitney, 5500 Campanile Drive, San Diego, CA 92182-7700 USA.
All rights reserved.

visitors since 17-Nov-98