mirror of
https://github.com/danbulant/Cosmos
synced 2026-05-21 13:28:41 +00:00
Added test to check for value larger than int max
This commit is contained in:
parent
638078f31f
commit
496144ab71
1 changed files with 3 additions and 0 deletions
|
|
@ -86,6 +86,9 @@ namespace Cosmos.Compiler.Tests.Bcl.System
|
|||
result = Math.Ceiling(double.NegativeInfinity);
|
||||
Assert.IsTrue(double.IsNegativeInfinity(result), "Ceiling gives correct value for -INF");
|
||||
|
||||
result = Math.Ceiling((double)int.MaxValue + 2.5);
|
||||
Assert.IsTrue(EqualityHelper.DoublesAreEqual(result, (double)int.MaxValue + 3), "Ceiling works for values larger than an int can hold. " + result + " expected " + (double)int.MaxValue + 3);
|
||||
|
||||
#endregion Ceiling
|
||||
|
||||
#region Math.Cos
|
||||
|
|
|
|||
Loading…
Reference in a new issue