UW Logo

CS343: Concurrent and Parallel Programming

Supported by the Instructional Support Group

University of Waterloo : Faculty of Mathematics : School of Computer Science : CS343 Home Page

Testing and Documentation Examples

Testing Strategies

The following tips discuss how to approach testing. There are two main types of problems presented in a program:

Note, some situations are a combination of the two, so the testing techniques have to be combined.

These examples illustrate some approaches to handling these problems.

General Comments

A test document demonstrates aspects of a program's correctness to the marker.

Data Problems

Invalid data comes from the command-line and/or files (including standard input).

Control-Flow Problems

Invalid control flow occurs when the program transfers to the wrong location.

Documentation Examples

Good versus Better Code and Documentation

A zip file containing all of the sample documentation listed below.

  1. C++
  2. Concurrent

Valid XHTML 1.0 Strict