[Mono-dev] Patch for math class with test

Dennis Hayes denisraytek at yahoo.com
Sat Mar 10 05:15:15 EST 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
   

 
---------------------------------
TV dinner still cooling?
Check out "Tonight's Picks" on Yahoo! TV.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20070310/899cf2f7/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/20070310/899cf2f7/attachment.pl 


More information about the Mono-devel-list mailing list