X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=mono%2Fmini%2Fbasic-math.cs;h=a5aeb9cc8a9eac5d8e28873b5f53601acff087bd;hb=19046502886ad7697b4c6642337441a7fdafd28a;hp=4482c913af6f88513c7e0465b2f6b954ce78e6da;hpb=0e5dd1f51a0dc59f1ada718ccba4622666beb434;p=mono.git diff --git a/mono/mini/basic-math.cs b/mono/mini/basic-math.cs index 4482c913af6..a5aeb9cc8a9 100644 --- a/mono/mini/basic-math.cs +++ b/mono/mini/basic-math.cs @@ -23,11 +23,18 @@ using System.Reflection; * the IL code looks. */ -class 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;