X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=mono%2Fmini%2Fbasic-math.cs;h=a5aeb9cc8a9eac5d8e28873b5f53601acff087bd;hb=56247cecbdce6dc3a14228541bbb7515634f099b;hp=854b21e5868870a4ca21709eff65612f6bdfdcde;hpb=e86837b7d28558b34d38f54d4d7e99a97f1aae1b;p=mono.git diff --git a/mono/mini/basic-math.cs b/mono/mini/basic-math.cs index 854b21e5868..a5aeb9cc8a9 100644 --- a/mono/mini/basic-math.cs +++ b/mono/mini/basic-math.cs @@ -23,14 +23,14 @@ using System.Reflection; * the IL code looks. */ -#if MOBILE +#if __MOBILE__ class MathTests #else class Tests #endif { -#if !MOBILE +#if !__MOBILE__ public static int Main (string[] args) { return TestDriver.RunTests (typeof (Tests), args); } @@ -257,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;