Author: spouliot
Date: 2007-03-30 08:36:15 -0500 (Fri, 30 Mar 2007)
New Revision: 75193

Modified:
   trunk/mcs/class/System.Drawing/Test/System.Drawing/ChangeLog
   trunk/mcs/class/System.Drawing/Test/System.Drawing/SystemFontsTest.cs
Log:
2007-03-30  Sebastien Pouliot  <[EMAIL PROTECTED]> 

        * SystemFontsTest.cs: Allow a small delta when comparing floats. This
        allows the ARM to work properly (e.g. 8.249999 versus 8.25).



Modified: trunk/mcs/class/System.Drawing/Test/System.Drawing/ChangeLog
===================================================================
--- trunk/mcs/class/System.Drawing/Test/System.Drawing/ChangeLog        
2007-03-30 13:28:55 UTC (rev 75192)
+++ trunk/mcs/class/System.Drawing/Test/System.Drawing/ChangeLog        
2007-03-30 13:36:15 UTC (rev 75193)
@@ -1,3 +1,8 @@
+2007-03-30  Sebastien Pouliot  <[EMAIL PROTECTED]> 
+
+       * SystemFontsTest.cs: Allow a small delta when comparing floats. This
+       allows the ARM to work properly (e.g. 8.249999 versus 8.25).
+
 2007-03-19  Jonathan Pobst  <[EMAIL PROTECTED]>
 
        * TestFont.cs: Add a test for exception thrown when an unavailable font 

Modified: trunk/mcs/class/System.Drawing/Test/System.Drawing/SystemFontsTest.cs
===================================================================
--- trunk/mcs/class/System.Drawing/Test/System.Drawing/SystemFontsTest.cs       
2007-03-30 13:28:55 UTC (rev 75192)
+++ trunk/mcs/class/System.Drawing/Test/System.Drawing/SystemFontsTest.cs       
2007-03-30 13:36:15 UTC (rev 75193)
@@ -69,8 +69,8 @@
 
                        Assert.AreEqual (true, f.IsSystemFont, "#3");
                        Assert.IsFalse (f.Italic, "#4");
-                       Assert.AreEqual (8.25, f.Size, "#6");
-                       Assert.AreEqual (8.25, f.SizeInPoints, "#7");
+                       Assert.AreEqual (8.25, f.Size, 0.01, "#6");
+                       Assert.AreEqual (8.25, f.SizeInPoints, 0.01, "#7");
                        Assert.IsFalse (f.Strikeout, "#8");
                        Assert.IsFalse (f.Underline, "#9");
                        Assert.AreEqual (GraphicsUnit.Point, f.Unit, "#10");

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to