Unit Test Results

Unit Test Results - Module ID: Insert( int id, double dd)...

Info iconThis preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: Module ID: Insert( int id, double dd) Program ID: B Tree 1. Module Overview Briefly describe the function of this module. The purpose of the insert function is to add a value to the binary tree. At the command prompt the user will enter a to insert and integer value. The program then asks the user to Enter value to add. The program will then execute if the value already exists within the binary tree or insert into the binary tree. 1.1 Inputs to Module Brief description of the inputs to the module under test. The inputs to this module are of positive and negative integer values using digits 0 thru 9. Any other character will not be accepted at the command line. Integer values such as decimals, fractions, or other mathematical notations also will not be accepted. 1.2 Outputs from Module Brief description of the outputs from the module under test. The output for this function consists of three types. 1. Value added to tree, will then change the structure of the binary tree. 2. Value already inside the tree, the binary tree will not change. 3. Incorrect syntax input output will be and error with a exception description and will exit the program. 1.3 Module Flow Diagram 2. Test Data, Positive and Negative Cases We assume to have a blank Test Input Expected result Actual Result Test Date 1 10 Inorder traversal: {10} Inorder traversal: {10} 3/20/03 2 9 Inorder traversal: {9} {10} Inorder traversal: {9} {10} 3/20/03 3 8 Inorder traversal: {8} {9} {10} Inorder traversal: {8} {9} {10} 3/20/03 4 11 Inorder traversal: {8} {9} {10} Inorder traversal: {8} {9} {10} 3/20/03 5 12 Inorder traversal: {8} {9} {10} {11} {12} Inorder traversal: {8} {9} {10} {11} {12} 3/20/03 3. Interface Modules Identify the modules that interface with this module. The modules that interface with the insert module is the main event loop module class TreeApp. 4. Test Tools Describe the software applications used for unit testing, names and operation procedures. The test tools used for unit testing is a PC running a java compiler on DOS and tested manually. 5. Updates Indicate if there is any module unit testing updates. Module ID: Find( int key) Program ID: B Tree Search Function 1. Module Overview Briefly describe the function of this module. The purpose of the find function is to search if an inputted value is within the binary tree. At the command prompt, the user types in s for search. After which the program asks the user to Enter value to search. If value is found the value is returned. Otherwise a message is given that the value was not found. 1.1 Inputs to Module Brief description of the inputs to the module under test....
View Full Document

Page1 / 6

Unit Test Results - Module ID: Insert( int id, double dd)...

This preview shows document pages 1 - 3. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online