[Mono-list] (no subject)

Nick Drochak ndrochak@gol.com
Sat, 23 Feb 2002 09:00:54 +0900


David,

The docs say CompareTo() returns values "Less than zero" and "Greater
than zero".  So, it seems that testing for -1 and +1 isn't exactly
correct.  Maybe it's a java thang?

This code was in your EnumTest:
		AssertEquals("should equal", 0, x.CompareTo(x));
		AssertEquals("less than", -1, x.CompareTo(y));
		AssertEquals("greater than", 1, y.CompareTo(x));


Regards,
Nick D.