[Mono-list] (no subject)

bucky@phantom.keystreams.com bucky@phantom.keystreams.com
Sun, 24 Feb 2002 17:27:50 -0800 (PST)


You are absolutely correct.  I'd like to think that it's a java thing, but
it may have just been me...

Just for the record, I would like to say that I certainly don't see any of
the tests that I have written as 'my code'.  (In fact, one of the big
gains that unit tests get you is a lack of code ownership.)  If anybody 
catches a problem in a test I wrote, or there's an extra condition that
you'd like to test for, please feel free to jump in and make changes.

But don't anybody delete tests.  That would be evil. ;)


On Sat, 23 Feb 2002, Nick Drochak wrote:

> 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.
> _______________________________________________
> Mono-list maillist  -  Mono-list@ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list