blob: 509ce85e2aea3b45da40b59acf3280f7f982346a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using System;
internal class Test
{
static public int Main(string[] args)
{
bool b1 = Double.IsPositiveInfinity(Math.Exp(Double.PositiveInfinity));
bool b2 = 0 == Math.Exp(Double.NegativeInfinity);
Console.WriteLine(b1);
Console.WriteLine(b2);
if (b1 && b2)
{
Console.WriteLine("***PASSED***");
return 100;
}
else
{
Console.WriteLine("***FAILED***");
return 1;
}
}
}
|