Author: spouliot
Date: 2007-03-30 08:37:27 -0500 (Fri, 30 Mar 2007)
New Revision: 75195
Modified:
trunk/mcs/class/System.Drawing/Test/System.Drawing.Drawing2D/ChangeLog
trunk/mcs/class/System.Drawing/Test/System.Drawing.Drawing2D/TestMatrix.cs
Log:
2007-03-30 Sebastien Pouliot <[EMAIL PROTECTED]>
* TestMatrix.cs: Allow a small delta when comparing floats. This
allows the ARM to work properly (e.g. -9.999995 versus -10).
Modified: trunk/mcs/class/System.Drawing/Test/System.Drawing.Drawing2D/ChangeLog
===================================================================
--- trunk/mcs/class/System.Drawing/Test/System.Drawing.Drawing2D/ChangeLog
2007-03-30 13:36:47 UTC (rev 75194)
+++ trunk/mcs/class/System.Drawing/Test/System.Drawing.Drawing2D/ChangeLog
2007-03-30 13:37:27 UTC (rev 75195)
@@ -1,3 +1,8 @@
+2007-03-30 Sebastien Pouliot <[EMAIL PROTECTED]>
+
+ * TestMatrix.cs: Allow a small delta when comparing floats. This
+ allows the ARM to work properly (e.g. -9.999995 versus -10).
+
2006-09-26 Sebastien Pouliot <[EMAIL PROTECTED]>
* GraphicsPathTest.cs: Added test case for Reverse (and found out that
Modified:
trunk/mcs/class/System.Drawing/Test/System.Drawing.Drawing2D/TestMatrix.cs
===================================================================
--- trunk/mcs/class/System.Drawing/Test/System.Drawing.Drawing2D/TestMatrix.cs
2007-03-30 13:36:47 UTC (rev 75194)
+++ trunk/mcs/class/System.Drawing/Test/System.Drawing.Drawing2D/TestMatrix.cs
2007-03-30 13:37:27 UTC (rev 75195)
@@ -344,12 +344,12 @@
Matrix matrix = new Matrix (10, 20, 30, 40, 50, 60);
matrix.RotateAt (180, new PointF (10, 10));
- AssertEquals ("I#1", -10, matrix.Elements[0]);
- AssertEquals ("I#2", -20, matrix.Elements[1]);
- AssertEquals ("I#3", -30, matrix.Elements[2]);
- AssertEquals ("I#4", -40, matrix.Elements[3]);
- AssertEquals ("I#5", 850, matrix.Elements[4]);
- AssertEquals ("I#6", 1260, matrix.Elements[5]);
+ AssertEquals ("I#1", -10, matrix.Elements[0], 0.01);
+ AssertEquals ("I#2", -20, matrix.Elements[1], 0.01);
+ AssertEquals ("I#3", -30, matrix.Elements[2], 0.01);
+ AssertEquals ("I#4", -40, matrix.Elements[3], 0.01);
+ AssertEquals ("I#5", 850, matrix.Elements[4], 0.01);
+ AssertEquals ("I#6", 1260, matrix.Elements[5], 0.01);
}
[Test]
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches