Author: gonzalo
Date: 2005-06-27 09:56:34 -0400 (Mon, 27 Jun 2005)
New Revision: 46555

Modified:
   trunk/mcs/class/corlib/Test/System/ChangeLog
   trunk/mcs/class/corlib/Test/System/ConvertTest.cs
Log:
2005-06-27 Gonzalo Paniagua Javier <[EMAIL PROTECTED]>

        * ConvertTest.cs: added test from Lluis.



Modified: trunk/mcs/class/corlib/Test/System/ChangeLog
===================================================================
--- trunk/mcs/class/corlib/Test/System/ChangeLog        2005-06-27 13:50:09 UTC 
(rev 46554)
+++ trunk/mcs/class/corlib/Test/System/ChangeLog        2005-06-27 13:56:34 UTC 
(rev 46555)
@@ -1,3 +1,7 @@
+2005-06-27 Gonzalo Paniagua Javier <[EMAIL PROTECTED]>
+
+       * ConvertTest.cs: added test from Lluis.
+
 2005-06-27  Atsushi Enomoto  <[EMAIL PROTECTED]>
 
        * StringTest.cs : added new Trim() tests for bug #75259.
@@ -3,5 +7,5 @@
 
 2005-06-14  Sebastien Pouliot  <[EMAIL PROTECTED]> 
- 
+
        * CharCategoryTest.cs: Added new whitespace (to fix failure on Mono, 
        there are other failures when executed under 2.0 beta 2).

Modified: trunk/mcs/class/corlib/Test/System/ConvertTest.cs
===================================================================
--- trunk/mcs/class/corlib/Test/System/ConvertTest.cs   2005-06-27 13:50:09 UTC 
(rev 46554)
+++ trunk/mcs/class/corlib/Test/System/ConvertTest.cs   2005-06-27 13:56:34 UTC 
(rev 46555)
@@ -2669,6 +2669,16 @@
                  Convert.FromBase64String(brokenB64);
                }
 
+               [Test]
+               public void TestBeginWithSpaces ()
+               {
+                       byte[] bb = new byte[] { 1, 2, 3};
+                       string s = Convert.ToBase64String (bb);
+                       byte [] b2 = Convert.FromBase64String ("     " + s);
+                       Assertion.AssertEquals ("#01", 3, b2.Length);
+                       for (int i = 0; i < 3; i++)
+                               Assertion.AssertEquals ("#0" + (i + 2), bb [i], 
b2 [i]);
+               }
                
                public void TestToBase64CharArray ()
                {

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

Reply via email to