[Mono-list] More progress!
Miguel de Icaza
miguel@ximian.com
05 Oct 2001 01:53:39 -0400
> but what do you want us to write for the class library test suite ?
Basically, for each class that we have on the class library, we need a
test suite that would excercise it on every possible way.
For example, lets consider the `String' class. Various tests on the
code would be useful:
string a = "hello";
string b = "world";
Assert (a + b == "helloworld");
Assert (a.IndexOf ("l") == 2);
Assert (a.Length == 5);
And so on. The idea being that if we do any work in the class
libraries, instead of testing against a very small test case (which is
what most developers would do), we could run the regression test suite
and have hundreds of tests excercise the potential problems and track
down a bug before it reaches the users.
Miguel.