[Mono-dev] Patch for Math.cs and MathTest.cs
Dennis Hayes
denisraytek at yahoo.com
Thu Mar 15 17:54:46 EDT 2007
Math.cs
Added Locale.GetText to all strings.
Rearranged Rounding with MidPoint to minimize compairs, and to clean up a bit.
MathTest.cs
Added quite a few new tests for rounding, including test for
the 2.0 rounding with midpoint.
It also incudes new test for veryfing bad enum execptions.
6 of the test are commented out because they fail.
3 fail because they have not been implmented.
1 fails due to a know rounding error already in bugzilla (new
test to exercise bug 60227 & 63902 should return 3.45, not 3.45000000000...
2 fail for what looks like a different error.
//fails. Should return 2.6, but actualy returns 2.5
//AssertEquals("Decmial Rounding toEven", 2.6D , Math.Round(2.55D, 1));
Bug 60227 covers a number of rounding errors, it was not clear of it included this one or not.
If these are good, please check them it. Otherwise let me know what is wrong.
Thanks,
Dennis
---------------------------------
No need to miss a message. Get email on-the-go
with Yahoo! Mail for Mobile. Get started.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20070315/00c7ae62/attachment.html
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: math.diff
Url: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20070315/00c7ae62/attachment.pl
More information about the Mono-devel-list
mailing list