Author: martin
Date: 2006-10-04 16:45:35 -0400 (Wed, 04 Oct 2006)
New Revision: 66251

Added:
   trunk/mcs/tests/test-anon-50.cs
Removed:
   branches/martin/anonymous-methods/work/test-martin-20.cs
Log:
New test.


Deleted: branches/martin/anonymous-methods/work/test-martin-20.cs
===================================================================
--- branches/martin/anonymous-methods/work/test-martin-20.cs    2006-10-04 
20:45:10 UTC (rev 66250)
+++ branches/martin/anonymous-methods/work/test-martin-20.cs    2006-10-04 
20:45:35 UTC (rev 66251)
@@ -1,51 +0,0 @@
-// Compiler options: -langversion:default
-
-using System;
-using System.Collections;
-
-public class Test
-{
-       public IEnumerable Foo (int a)
-       {
-               yield return a;
-               yield return a * a;
-               yield break;
-       }
-}
-
-class X
-{
-       static int Main ()
-       {
-               Test test = new Test ();
-
-               IEnumerable a = test.Foo (5);
-
-               IEnumerator c = a.GetEnumerator ();
-               if (!c.MoveNext ())
-                       return 5;
-               if ((int) c.Current != 5)
-                       return 6;
-               if (!c.MoveNext ())
-                       return 7;
-               if ((int) c.Current != 25)
-                       return 8;
-
-               IEnumerator d = a.GetEnumerator ();
-
-               if ((int) c.Current != 25)
-                       return 9;
-               if (!d.MoveNext ())
-                       return 10;
-               if ((int) c.Current != 25)
-                       return 11;
-               if ((int) d.Current != 5)
-                       return 12;
-
-               if (c.MoveNext ())
-                       return 13;
-
-               ((IDisposable) a).Dispose ();
-               return 0;
-       }
-}

Copied: trunk/mcs/tests/test-anon-50.cs (from rev 66250, 
branches/martin/anonymous-methods/work/test-martin-20.cs)

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

Reply via email to