[an error occurred while processing this directive]
TestInteractive mode is normally used for debugging and early testing of the module.
To use the program in batch mode the user gives the following command to the operating system command interpreter:
Test filenamewhere filename is the name of a file that contains testing commands. Batch mode is normally used for final testing of the module. Batch testing input files should be retained for regression testing of the module.
Blank lines and lines that begin with a white character are treated as commands with an empty string for the command name. These lines are ignored by the program, allowing batch command files to be laid out with a more readable style.
The Test program recognizes two kinds of commands: control commands and module testing commands.
The tables below list the Table and TableIterator testing commands and the client interface functions that they test. The entries in both columns of the tables are links to detailed documentation.
Command Name | Function Tested |
---|---|
add | add |
remove | remove |
iskey | isKey |
ntable | newTable |
clear | clear |
data | dataFor |
niterator | newTableIterator |
Command Name | Function Tested |
---|---|
more | more |
advance | advance |
ckey | currentData |
cdata | currentKey |
Preconditions:
isKey(theTable, k) is true.
Preconditions:
isKey(theTable, k) is false.
Preconditions:
isKey(theTable, k) is true.
Preconditions:
more(theTableIterator) is true.