Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarek Safar <marek.safar@gmail.com>2010-03-16 22:58:19 +0300
committerMarek Safar <marek.safar@gmail.com>2010-03-16 22:58:19 +0300
commit4e69f5ca6dbda504557ae09b49cfba2e3d92d7f0 (patch)
treeb5e98ce0ddb5fd1742e1ee3f28c025cb998e1184 /mcs/tests/test-733.cs
parent8de7037b16020bb919579c75e3be981152a37ff8 (diff)
different check
svn path=/trunk/mcs/; revision=153697
Diffstat (limited to 'mcs/tests/test-733.cs')
-rw-r--r--mcs/tests/test-733.cs5
1 files changed, 2 insertions, 3 deletions
diff --git a/mcs/tests/test-733.cs b/mcs/tests/test-733.cs
index cbb85d983b2..1131908f089 100644
--- a/mcs/tests/test-733.cs
+++ b/mcs/tests/test-733.cs
@@ -7,9 +7,8 @@ public class Test
float a = 1f / 3;
float b = (float) Math.Acos ((float) (a * 3));
Console.WriteLine (b);
- if (b != 0 && b != float.NaN) {
- throw new ApplicationException (b.ToString ());
- return 1;
+ if (b != 0 && !float.IsNaN (b)) {
+ throw new ApplicationException (b.ToString () + b.GetType ().ToString ());
}
return 0;