Merge pull request #5714 from alexischr/update_bockbuild
[mono.git] / mono / mini / basic-math.cs
index d2fa1ede9bc9317e245a730a233024d36f6bc81c..a5aeb9cc8a9eac5d8e28873b5f53601acff087bd 100644 (file)
@@ -23,11 +23,18 @@ using System.Reflection;
  * the IL code looks.
  */
 
-class Tests {
-
-       public static int Main () {
-               return TestDriver.RunTests (typeof (Tests));
+#if __MOBILE__
+class MathTests
+#else
+class Tests
+#endif
+{
+
+#if !__MOBILE__
+       public static int Main (string[] args) {
+               return TestDriver.RunTests (typeof (Tests), args);
        }
+#endif
        
        public static int test_0_sin_precision () {
                double d1 = Math.Sin (1);
@@ -250,6 +257,14 @@ class Tests {
                return 0;
        }
 
+       public static int test_0_float_abs () {
+               float f = -1.0f;
+
+               if (Math.Abs (f) != 1.0f)
+                       return 1;
+               return 0;
+       }
+
        public static int test_0_round () {
                if (Math.Round (5.0) != 5.0)
                        return 1;