Lab - Testing I


Objectives


Discussion

We will talk about:

What test cases should there be for bigint's addition function?

Building Test Cases

Refresher from lecture (lecture slides for reference)

There are three steps in a test:

  1. Set up the "fixture", the system to be tested

  2. Perform the test

  3. Verify the resultes, make sure there are no unwanted side effects

Example

{
    // Setup fixture
    bigint left(9);
    bigint right(5);
    bigint result;

    // Test
    result = left + right;

    // Verify
    assert(left   ==  9);
    assert(right  ==  5);
    assert(result == 14);
}

Setup

Update shared

Update your shared/ folder in svn.

It is assumed that your provided material working copy is named shared and that it is in your home directory. If not, adjust accordingly.

  
  cd           # Go to your home directory
  cd shared    # Go into your shared working copy
  svn update

You will get messages about files being added and updated.


UNIX Quiz

As a part of your lab assignment, you must complete a quiz in Canvas. This quiz will cover what you learned in the previous lab about UNIX system commands.

You have the entire lab to complete the quiz. You may not complete this quiz outside of your lab.


Assignment


Requirements

The following must be true when you are done, NAMES MUST MATCH EXACTLY:

Verify Commit

Use the browser one more time to verify that your work has been committed.

http://svn.cs.kent.edu/courses/cs23001/svn/USERNAME

You can click on the above link then replace "USERNAME" in the browser's location box with your information.

Final Note

Upon completion of this assignment it will be assumed you are comfortable with the skills used in this assignment.

Do not hesitate to ask your instructor if you have questions or problems.


URL: https://data-structures.cs.kent.edu/labs/Lab3
Last update: EST