fix line endings once in for all
authorJb Evain <jbevain@gmail.com>
Thu, 21 Feb 2008 16:55:49 +0000 (16:55 -0000)
committerJb Evain <jbevain@gmail.com>
Thu, 21 Feb 2008 16:55:49 +0000 (16:55 -0000)
svn path=/trunk/mcs/; revision=96371

mcs/class/System.Core/Test/System.Linq.Expressions/ExpressionTest_Add.cs
mcs/class/System.Core/Test/System.Linq.Expressions/ExpressionTest_AddChecked.cs
mcs/class/System.Core/Test/System.Linq.Expressions/ExpressionTest_And.cs
mcs/class/System.Core/Test/System.Linq.Expressions/ExpressionTest_Constant.cs
mcs/class/System.Core/Test/System.Linq.Expressions/ExpressionTest_GreaterThan.cs
mcs/class/System.Core/Test/System.Linq.Expressions/ExpressionTest_Lift.cs
mcs/class/System.Core/Test/System.Linq.Expressions/ExpressionTest_MakeBinary.cs
mcs/class/System.Core/Test/System.Linq.Expressions/ExpressionTest_Or.cs
mcs/class/System.Core/Test/System.Linq.Expressions/ExpressionTest_OrElse.cs
mcs/class/System.Core/Test/System.Linq.Expressions/ExpressionTest_Power.cs
mcs/class/System.Core/Test/System.Linq.Expressions/ExpressionTest_SubtractChecked.cs

index 313e0a55983a6f04534fde3d7839708e941917bd..60bbf767b13a2f7c11e6f50ec0e0cb4d7133e1c2 100644 (file)
@@ -114,7 +114,7 @@ namespace MonoTests.System.Linq.Expressions
        // constants, like this case.   Need to figure out what to do
        // with those
        //
-       
+
                        Func<OpClass> compiled = l.Compile ();
                        Assert.AreEqual (left, compiled  ());
 #endif
@@ -125,7 +125,7 @@ namespace MonoTests.System.Linq.Expressions
                                return 1000;
                        }
                }
-               
+
                [Test]
                public void TestMethodAddition ()
                {
@@ -134,7 +134,7 @@ namespace MonoTests.System.Linq.Expressions
 
                        Func<int> compiled = l.Compile ();
                        Assert.AreEqual (1000, compiled ());
-                       
+
                }
        }
 }
index 3b16770bb742590f14e91239551c13d41e998e91..3f8fe6067a48be0a31d13f97610e4ff512218d5d 100644 (file)
@@ -151,7 +151,7 @@ namespace MonoTests.System.Linq.Expressions
                        Func<T> del = l.Compile ();
                        del ();
                }
-               
+
                //
                // SubtractChecked is not defined for small types (byte, sbyte)
                //
@@ -194,7 +194,7 @@ namespace MonoTests.System.Linq.Expressions
                        // These are invalid:
                        InvalidOperation<byte> (Byte.MaxValue, 2);
                        InvalidOperation<sbyte> (SByte.MaxValue, 2);
-                       
+
                        // Stuff that just fits in 32 bits, does not overflow:
                        MustNotOverflow<short> (Int16.MaxValue, 2);
                        MustNotOverflow<ushort> (UInt16.MaxValue, 2);
index d735d7d210201b28b41ef2a5bb2e3e7aaf41e5ac..27e445f9cdec6b3f56f3a2526da31d1a19972b57 100644 (file)
@@ -105,28 +105,28 @@ namespace MonoTests.System.Linq.Expressions
                public void AndTest ()
                {
                        Expression<Func<bool, bool, bool>> e = (bool a, bool b) => a & b;
-                       
+
                        Func<bool,bool,bool> c = e.Compile ();
-                       
+
                        Assert.AreEqual (true,  c (true, true), "t1");
                        Assert.AreEqual (false, c (true, false), "t2");
                        Assert.AreEqual (false, c (false, true), "t3");
                        Assert.AreEqual (false, c (false, false), "t4");
                }
-               
+
                [Test]
                public void AndNullableTest ()
                {
                        Expression<Func<bool?, bool?, bool?>> e = (bool? a, bool? b) => a & b;
-                       
+
                        Func<bool?,bool?,bool?> c = e.Compile ();
-                       
-                       
+
+
                        Assert.AreEqual (true,  c (true, true), "a1");
                        Assert.AreEqual (false, c (true, false), "a2");
                        Assert.AreEqual (false, c (false, true), "a3");
                        Assert.AreEqual (false, c (false, false), "a4");
-                       
+
                        Assert.AreEqual (null,  c (true, null),  "a5");
                        Assert.AreEqual (false, c (false, null), "a6");
                        Assert.AreEqual (false, c (null, false), "a7");
index 7acf314a8ffc5b9d1dc62ef33ee418797fa15750..91a661667a3a3154eabdcc6d9e7e9c57eb6d1962 100644 (file)
@@ -136,7 +136,7 @@ namespace MonoTests.System.Linq.Expressions
                [ExpectedException (typeof (ArgumentException))]
                public void TestInvalidCtor_2 ()
                {
-                       // type mismatch: int value, type == double 
+                       // type mismatch: int value, type == double
                        Expression.Constant (0, typeof (double));
                }
 
@@ -155,7 +155,7 @@ namespace MonoTests.System.Linq.Expressions
                        Assert.AreEqual (typeof (int), c.Type, "#1");
                        Assert.AreEqual (1, c.Value, "#2");
                }
-               
+
                [Test]
                public void ConstantCodeGen ()
                {
index 765688849cb98199a5a54b053818d526505b542d..388c7e1c2e3a0a2efa678b321a4102cf41bd9d74 100644 (file)
@@ -124,7 +124,7 @@ namespace MonoTests.System.Linq.Expressions
 
                        Expression<Func<int,int,bool>> pexpr = Expression.Lambda<Func<int,int,bool>> (
                                p, new ParameterExpression [] { a, b });
-                       
+
                        Func<int,int,bool> compiled = pexpr.Compile ();
                        Assert.AreEqual (true, compiled (10, 1), "tc1");
                        Assert.AreEqual (true, compiled (1, 0), "tc2");
index ce2fb225da3b82dfa2c54ee49dd311e55becace7..f3773d8c2483966cc005e433c5c6f6c8be25caa3 100644 (file)
@@ -64,19 +64,19 @@ namespace MonoTests.System.Linq.Expressions
                static MethodInfo GM(string n)
                {
                        MethodInfo [] m = typeof(ExpressionTest_Lifting).GetMethods(BindingFlags.Static | BindingFlags.Public);
-                       
+
                        foreach (MethodInfo mm in m)
                                if (mm.Name == n)
                                        return mm;
-                       
+
                        throw new Exception("No method found: " + n);
                }
-               
+
                static public int MyCompare (OpStruct a, OpStruct b)
                {
                        return 1;
                }
-               
+
                [Test]
                public void TestLiftOnEqual_WithMethodInfo ()
                {
@@ -92,13 +92,13 @@ namespace MonoTests.System.Linq.Expressions
                        BinaryExpression cmp2 = Expression.Equal (a, b, false, GM("MyCompare"));
 
                        //
-                       // When we use a MethodInfo, that has a non-bool return type, 
+                       // When we use a MethodInfo, that has a non-bool return type,
                        // the result is always Nullable<returntype> regardless of the
                        // setting of "liftToNull"
                        //
                        Assert.AreEqual (typeof(int?), cmp.Type);
                        Assert.AreEqual (typeof(int?), cmp2.Type);
-                       
+
                }
        }
 }
index df8cfd7d32015dd312996fd57c95d686b2bd6cb5..7bffd75834dc20e3cf5ff3284692fe6116b0377e 100644 (file)
@@ -49,7 +49,7 @@ namespace MonoTests.System.Linq.Expressions
                {
                        return 1;
                }
-               
+
                static MethodInfo GM (string n)
                {
                        MethodInfo [] methods = typeof (ExpressionTest_MakeBinary).GetMethods (
@@ -61,7 +61,7 @@ namespace MonoTests.System.Linq.Expressions
 
                        throw new Exception (String.Format ("Method {0} not found", n));
                }
-               
+
                [Test]
                public void MethodChecks ()
                {
@@ -101,7 +101,7 @@ namespace MonoTests.System.Linq.Expressions
 
                        Expression.Add (left, right, GM ("BadMethodSig_3"));
                }
-               
+
                static void PassInt (ExpressionType nt)
                {
                        Expression left = Expression.Constant (1);
@@ -185,7 +185,7 @@ namespace MonoTests.System.Linq.Expressions
                        FailInt (ExpressionType.TypeIs);
 #endif
                }
-               
+
                public delegate Expression BinaryExpr (Expression a, Expression b);
 
                public T CodeGen<T> (BinaryExpr bin, T v1, T v2)
@@ -196,7 +196,7 @@ namespace MonoTests.System.Linq.Expressions
                        Func<T> fi = l.Compile ();
                        return fi ();
                }
-               
+
                [Test]
                public void TestOperations ()
                {
@@ -215,7 +215,7 @@ namespace MonoTests.System.Linq.Expressions
                        BinaryExpression p = Expression.MakeBinary (node, Expression.Constant (a), Expression.Constant(b));
                        Expression<Func<T,T,bool>> pexpr = Expression.Lambda<Func<T,T,bool>> (
                                p, new ParameterExpression [] { pa, pb });
-                       
+
                        Func<T,T,bool> compiled = pexpr.Compile ();
                        Assert.AreEqual (r, compiled (a, b), String.Format ("{0} ({1},{2}) == {3}", node, a, b, r));
                }
@@ -224,7 +224,7 @@ namespace MonoTests.System.Linq.Expressions
                public void ComparisonTests ()
                {
                        ExpressionType t = ExpressionType.Equal;
-               
+
                        CTest<byte>   (t, true,   10,  10);
                        CTest<sbyte>  (t, false,   1,   5);
                        CTest<sbyte>  (t, true,    1,   1);
@@ -235,7 +235,7 @@ namespace MonoTests.System.Linq.Expressions
                        CTest<string> (t, false,  "Hey",  "There");
 
                        t = ExpressionType.NotEqual;
-                       
+
                        CTest<byte>   (t, false,   10,  10);
                        CTest<sbyte>  (t, true,   1,   5);
                        CTest<sbyte>  (t, false,    1,   1);
@@ -257,7 +257,7 @@ namespace MonoTests.System.Linq.Expressions
                        CTest<double> (t, false,  1.0, 1.0);
                        CTest<double> (t, false,  1.0, 1.0);
 
-                       
+
                        t = ExpressionType.LessThan;
                        CTest<byte>   (t, false,   5,  1);
                        CTest<byte>   (t, false,   10,  10);
@@ -280,7 +280,7 @@ namespace MonoTests.System.Linq.Expressions
                        CTest<double> (t, true,  1.0, 1.0);
                        CTest<double> (t, true,  1.0, 1.0);
 
-                       
+
                        t = ExpressionType.LessThanOrEqual;
                        CTest<byte>   (t, false,   5,  1);
                        CTest<byte>   (t, true,   10,  10);
@@ -291,7 +291,7 @@ namespace MonoTests.System.Linq.Expressions
                        CTest<ulong>  (t, false,     Int64.MaxValue,  0);
                        CTest<double> (t, true,  1.0, 1.0);
                        CTest<double> (t, true,  1.0, 1.0);
-                       
+
                }
 
        }
index 9c80c882e4c63575410619ffca092bc9e4b9ccc0..c5613f97b252eb1e20f175cd47d3a1892d0a6a16 100644 (file)
@@ -105,33 +105,33 @@ namespace MonoTests.System.Linq.Expressions
                public void OrTest ()
                {
                        Expression<Func<bool, bool, bool>> e = (bool a, bool b) => a | b;
-                       
+
                        Func<bool,bool,bool> c = e.Compile ();
-                       
+
                        Assert.AreEqual (true,  c (true, true), "o1");
                        Assert.AreEqual (true, c (true, false), "o2");
                        Assert.AreEqual (true, c (false, true), "o3");
                        Assert.AreEqual (false, c (false, false), "o4");
                }
-               
+
                [Test]
                public void OrNullableTest ()
                {
                        Expression<Func<bool?, bool?, bool?>> e = (bool? a, bool? b) => a | b;
-                       
+
                        Func<bool?,bool?,bool?> c = e.Compile ();
-                       
+
                        Assert.AreEqual (true,  c (true, true),   "o1");
                        Assert.AreEqual (true,  c (true, false),  "o2");
                        Assert.AreEqual (true,  c (false, true),  "o3");
                        Assert.AreEqual (false, c (false, false), "o4");
-       
+
                        Assert.AreEqual (true, c (true, null),  "o5");
                        Assert.AreEqual (null, c (false, null), "o6");
                        Assert.AreEqual (null, c (null, false), "o7");
                        Assert.AreEqual (true, c (true, null),  "o8");
                        Assert.AreEqual (null, c (null, null),  "o9");
                }
-       
+
        }
 }
index 1e36d58af3a956ef80978ae5cc0d4bfdd79431b6..a6ac5735270b4e0b39964f717a821bbfe97d2600 100644 (file)
@@ -111,7 +111,7 @@ namespace MonoTests.System.Linq.Expressions
                                return null;
                        }
                }
-               
+
                [Test]
                [ExpectedException(typeof(ArgumentException))]
                public void MethodInfoReturnType ()
index 790cc447472de2afce4b93a413033cf94ec8c5c5..46d0fa7449c3aafb0b81b1e4c86196b6ea282f11 100644 (file)
@@ -81,7 +81,7 @@ namespace MonoTests.System.Linq.Expressions
                        ParameterExpression a = Expression.Parameter(typeof(double), "a");
                        ParameterExpression b = Expression.Parameter(typeof(double), "b");
                        BinaryExpression p = Expression.Power (a, b);
-                       
+
                        Expression<Func<double,double,double>> pexpr = Expression.Lambda<Func<double,double,double>> (p, new ParameterExpression [] { a, b });
                        Func<double,double,double> compiled = pexpr.Compile ();
                        Assert.AreEqual (1, compiled (1, 10));
index d1f0f1edfce593643331aff7bc7292227aacec74..393935ad1f83c353251236b578f284a5fe9e4f8d 100644 (file)
@@ -166,7 +166,7 @@ namespace MonoTests.System.Linq.Expressions
                        }
                        throw new Exception (String.Format ("SubtractChecked should have thrown for the creation of a tree with {0} operands", v1.GetType ()));
                }
-               
+
                [Test]
                public void TestOverflows ()
                {
@@ -178,7 +178,7 @@ namespace MonoTests.System.Linq.Expressions
                        MustOverflow<long> (Int64.MaxValue, -1);
 
                        MustOverflow<ushort> (UInt16.MinValue, 1);
-                       
+
                        // unsigned values use Sub_Ovf_Un, check that too:
                        MustOverflow<ulong> (0, 1);
                        MustOverflow<uint>  (0, 1);
@@ -191,7 +191,7 @@ namespace MonoTests.System.Linq.Expressions
                        // Sounds very odd, should file a bug with MS.
                        MustNotOverflow<short> (Int16.MinValue, 1);
                }
-               
+
                //
                // These should not overflow
                //