Author: martin
Date: 2006-10-04 16:55:11 -0400 (Wed, 04 Oct 2006)
New Revision: 66270

Added:
   trunk/mcs/tests/gtest-anon-10.cs
   trunk/mcs/tests/gtest-anon-11.cs
   trunk/mcs/tests/gtest-anon-4.cs
   trunk/mcs/tests/gtest-anon-5.cs
   trunk/mcs/tests/gtest-anon-7.cs
   trunk/mcs/tests/gtest-anon-8.cs
   trunk/mcs/tests/gtest-anon-9.cs
Removed:
   trunk/mcs/tests/gtest-anon-13.cs
   trunk/mcs/tests/gtest-anon-14.cs
   trunk/mcs/tests/gtest-anon-23.cs
   trunk/mcs/tests/gtest-anon-25.cs
   trunk/mcs/tests/gtest-anon-26.cs
   trunk/mcs/tests/gtest-anon-28.cs
   trunk/mcs/tests/gtest-anon-29.cs
Log:
Renamed the tests.

Copied: trunk/mcs/tests/gtest-anon-10.cs (from rev 66269, 
trunk/mcs/tests/gtest-anon-14.cs)

Copied: trunk/mcs/tests/gtest-anon-11.cs (from rev 66269, 
trunk/mcs/tests/gtest-anon-13.cs)

Deleted: trunk/mcs/tests/gtest-anon-13.cs
===================================================================
--- trunk/mcs/tests/gtest-anon-13.cs    2006-10-04 20:51:26 UTC (rev 66269)
+++ trunk/mcs/tests/gtest-anon-13.cs    2006-10-04 20:55:11 UTC (rev 66270)
@@ -1,30 +0,0 @@
-using System;
-
-public delegate void Foo ();
-
-public class Test<R>
-{
-       public void World<S,T> (S s, T t)
-               where S : X
-               where T : S
-       { }
-
-       public void Hello<U,V> (U u, V v)
-               where U : X
-               where V : U
-       {
-               Foo foo = delegate {
-                       World (u, v);
-               };
-       }
-}
-
-public class X
-{
-       public static void Main ()
-       {
-               X x = new X ();
-               Test<int> test = new Test<int> ();
-               test.Hello (x, x);
-       }
-}

Deleted: trunk/mcs/tests/gtest-anon-14.cs
===================================================================
--- trunk/mcs/tests/gtest-anon-14.cs    2006-10-04 20:51:26 UTC (rev 66269)
+++ trunk/mcs/tests/gtest-anon-14.cs    2006-10-04 20:55:11 UTC (rev 66270)
@@ -1,25 +0,0 @@
-using System;
-using System.Collections.Generic;
-
-class X
-{
-       public IEnumerable<T> Test<T> (T a, T b)
-       {
-               yield return b;
-               b = a;
-               yield return a;
-        }
-
-       static int Main ()
-       {
-               X x = new X ();
-               long sum = 0;
-               foreach (long i in x.Test (3, 5)) {
-                       Console.WriteLine (i);
-                       sum += i;
-               }
-
-               Console.WriteLine (sum);
-               return sum == 8 ? 0 : 1;
-       }
-}

Deleted: trunk/mcs/tests/gtest-anon-23.cs
===================================================================
--- trunk/mcs/tests/gtest-anon-23.cs    2006-10-04 20:51:26 UTC (rev 66269)
+++ trunk/mcs/tests/gtest-anon-23.cs    2006-10-04 20:55:11 UTC (rev 66270)
@@ -1,38 +0,0 @@
-using System;
-using System.Collections;
-using System.Collections.Generic;
-
-public delegate void Foo ();
-
-public class Test
-{
-       public static implicit operator Foo (Test test)
-       {
-               return delegate { Console.WriteLine ("Hello World!"); };
-       }
-
-       public static IEnumerable<Test> operator + (Test test, Test foo)
-       {
-               yield return test;
-               yield return foo;
-       }
-
-       public IEnumerable<int> Foo {
-               get {
-                       yield return 3;
-               }
-
-               set {
-                       Console.WriteLine ("Foo!");
-               }
-       }
-
-       static void Main ()
-       {
-               Test test = new Test ();
-               Foo foo = test;
-               foo ();
-               foreach (Test t in test + test)
-                       Console.WriteLine (t);
-       }
-}

Deleted: trunk/mcs/tests/gtest-anon-25.cs
===================================================================
--- trunk/mcs/tests/gtest-anon-25.cs    2006-10-04 20:51:26 UTC (rev 66269)
+++ trunk/mcs/tests/gtest-anon-25.cs    2006-10-04 20:55:11 UTC (rev 66270)
@@ -1,25 +0,0 @@
-using System;
-using System.Collections.Generic;
-
-delegate int Foo ();
-
-class X
-{
-       static void Main ()
-       {
-               Test ("Hello World", 8);
-       }
-
-       public static void Test<R> (R r, int a)
-       {
-               for (int b = a; b > 0; b--) {
-                       R s = r;
-                       Foo foo = delegate {
-                               Console.WriteLine (b);
-                               Console.WriteLine (s);
-                               return 3;
-                       };
-                       a -= foo ();
-               }
-       }
-}

Deleted: trunk/mcs/tests/gtest-anon-26.cs
===================================================================
--- trunk/mcs/tests/gtest-anon-26.cs    2006-10-04 20:51:26 UTC (rev 66269)
+++ trunk/mcs/tests/gtest-anon-26.cs    2006-10-04 20:55:11 UTC (rev 66270)
@@ -1,38 +0,0 @@
-using System;
-using System.Collections.Generic;
-
-class MyDisposable : IDisposable
-{
-       static int next_id;
-       int id = ++next_id;
-
-       public void Dispose ()
-       { }
-
-       public int ID {
-               get { return id; }
-       }
-
-       public override string ToString ()
-       {
-               return String.Format ("{0} ({1})", GetType (), id);
-       }
-}
-
-class X
-{
-       public static IEnumerable<int> Test (int a)
-       {
-               MyDisposable d;
-               using (d = new MyDisposable ()) {
-                       yield return a;
-                       yield return d.ID;
-               }
-       }
-
-       static void Main ()
-       {
-               foreach (int a in Test (5))
-                       Console.WriteLine (a);
-       }
-}

Deleted: trunk/mcs/tests/gtest-anon-28.cs
===================================================================
--- trunk/mcs/tests/gtest-anon-28.cs    2006-10-04 20:51:26 UTC (rev 66269)
+++ trunk/mcs/tests/gtest-anon-28.cs    2006-10-04 20:55:11 UTC (rev 66270)
@@ -1,41 +0,0 @@
-using System;
-using System.Collections.Generic;
-
-public delegate void Hello ();
-
-struct Foo
-{
-       public int ID;
-
-       public Foo (int id)
-       {
-               this.ID = id;
-       }
-
-       public IEnumerable<Foo> Test (Foo foo)
-       {
-               yield return this;
-               yield return foo;
-       }
-
-       public void Hello (int value)
-       {
-               if (ID != value)
-                       throw new InvalidOperationException ();
-       }
-
-       public override string ToString ()
-       {
-               return String.Format ("Foo ({0})", ID);
-       }
-}
-
-class X
-{
-       static void Main ()
-       {
-               Foo foo = new Foo (3);
-               foreach (Foo bar in foo.Test (new Foo (8)))
-                       Console.WriteLine (bar);
-       }
-}

Deleted: trunk/mcs/tests/gtest-anon-29.cs
===================================================================
--- trunk/mcs/tests/gtest-anon-29.cs    2006-10-04 20:51:26 UTC (rev 66269)
+++ trunk/mcs/tests/gtest-anon-29.cs    2006-10-04 20:55:11 UTC (rev 66270)
@@ -1,27 +0,0 @@
-// Compiler options: /unsafe
-using System;
-using System.Collections.Generic;
-
-unsafe class Test
-{
-       public static void Main ()
-       {
-               foreach (int item in GetItems ()) {
-                       Console.WriteLine (item);
-               }
-       }
-
-       public static unsafe int GetItem ()
-       {
-               byte[] value = new byte[] { 0xDE, 0xAD, 0xBE, 0xEF };
-
-               fixed (byte* valueptr = value) {
-                       return *(int*) valueptr;
-               }
-       }
-
-       public static IEnumerable<int> GetItems ()
-       {
-               yield return GetItem ();
-       }
-}

Copied: trunk/mcs/tests/gtest-anon-4.cs (from rev 66269, 
trunk/mcs/tests/gtest-anon-29.cs)

Copied: trunk/mcs/tests/gtest-anon-5.cs (from rev 66269, 
trunk/mcs/tests/gtest-anon-28.cs)

Copied: trunk/mcs/tests/gtest-anon-7.cs (from rev 66269, 
trunk/mcs/tests/gtest-anon-26.cs)

Copied: trunk/mcs/tests/gtest-anon-8.cs (from rev 66269, 
trunk/mcs/tests/gtest-anon-25.cs)

Copied: trunk/mcs/tests/gtest-anon-9.cs (from rev 66269, 
trunk/mcs/tests/gtest-anon-23.cs)

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

Reply via email to