Testing Someone Else's Code

For one point of extra credit, you will be given a sample class reqresenting a square matrix. Your job is come up with a series of unit tests that will either illustrate the ways in which this class is broken, or to prove to the TA conclusively that it works.

The code is here

Read about matrix multiplication if you are not familiar with it. See link below.
Start by asking yourself:

Then begin to test the code:
  1. Read about the class and its invariant in the javadoc comment.
  2. Write the pre and post conditions for each method in the javadoc.
  3. Proceed to write the code for the unit testing of this class.
  4. Explain to the TA what you found.

Notes on Matrix Multiplication

If you are unfamiliar with matrix multiplication (the topic of this program), you can refresh yourself here.