Unit tests (almost) done
Andrew Smith | 2 July, 2008 | 20:49
Finished writing unit tests for Vector, Matrix, and MathHelper. Those are the only files that have math in them. The rest need some fancier testing than the ok(a==b) I’ve done so far. Not sure we’re going to do that or not.
I think I found 3 problems: inverseMatrix(), matrixDeterminant(), and MatrixAdjoint() don’t seem to work. Either that or I don’t know how to use them properly. Would be great if Mark or Andor had a look at those. The test is in test_CRDAPI.html. It’s almost readable. I marked the lines with the problems with ‘!!’.
In fact you should have a look at the rest of it as well - since I assumed the rest of the functions do work properly, and used the data returned by them for the unit tests. Better not get test failures when broken code is fixed
