2002/06/03 Nick Drochak <ndrochak@gol.com>
authorNick Drochak <nickd@mono-cvs.ximian.com>
Sun, 2 Jun 2002 23:45:30 +0000 (23:45 -0000)
committerNick Drochak <nickd@mono-cvs.ximian.com>
Sun, 2 Jun 2002 23:45:30 +0000 (23:45 -0000)
* DecimalTest.cs: Fix some errors that were showing up when run against
ms.net.

svn path=/trunk/mcs/; revision=5093

mcs/class/corlib/Test/System/ChangeLog
mcs/class/corlib/Test/System/DecimalTest.cs

index 9130dfd241fbe813f411493ca7c5627ee3068d8e..599225dca234ca411bff774ff9c272c997e83517 100644 (file)
@@ -1,3 +1,8 @@
+2002/06/03  Nick Drochak <ndrochak@gol.com>
+
+       * DecimalTest.cs: Fix some errors that were showing up when run against
+       ms.net.
+
 2002-06-02  Nick Drochak  <ndrochak@gol.com>
 
        * ConvertTest.cs: Use en-US culture since that's all we support in our
index a6ca7a9a348969b79bbb008736519d90b8baa00b..eec514d6a68851c19694bbe186694cbc5e48912c 100644 (file)
@@ -197,8 +197,7 @@ namespace MonoTests.System {
                 try\r
                 {\r
                     string s = tab[i].d.ToString(tab[i].format, nfi);\r
-                   int expectedLength = tab[i].str.Length;\r
-                   AssertEquals("A01 tab[" + i + "].format = '" + tab[i].format + "')", tab[i].str, s.Substring(0,expectedLength));\r
+                   AssertEquals("A01 tab[" + i + "].format = '" + tab[i].format + "')", tab[i].str, s);\r
                 } \r
                 catch (OverflowException)\r
                 {\r
@@ -302,7 +301,8 @@ namespace MonoTests.System {
             ParseTest[] tab = {\r
                 new ParseTest("1.2345", 1.2345m),\r
                 new ParseTest("-9876543210", -9876543210m),\r
-                new ParseTest("$ (  79,228,162,514,264,337,593,543,950,335.000 ) ", S.Decimal.MinValue, NumberStyles.Currency),\r
+                new ParseTest(NumberFormatInfo.InvariantInfo.CurrencySymbol \r
+                       + " (  79,228,162,514,264,337,593,543,950,335.000 ) ", S.Decimal.MinValue, NumberStyles.Currency),\r
                 new ParseTest("1.234567890e-10", (S.Decimal)1.234567890e-10, NumberStyles.Float),\r
                 new ParseTest("1.234567890e-24", 1.2346e-24m, NumberStyles.Float),\r
                 new ParseTest("  47896396.457983645462346E10  ", 478963964579836454.62346m, NumberStyles.Float),\r