Fixed overflowing exponent bug

This commit is contained in:
TylerBrinkley
2016-09-01 14:05:49 -05:00
parent 5fd78b21f5
commit 62470bd803
2 changed files with 27 additions and 27 deletions
@@ -125,6 +125,10 @@ namespace Newtonsoft.Json.Tests.Utilities
AssertDoubleTryParse("1.7976931348623159E+308", ParseResult.Overflow, null);
AssertDoubleTryParse("-1.7976931348623159E+308", ParseResult.Overflow, null);
AssertDoubleTryParse("1E4294967297", ParseResult.Overflow, null);
AssertDoubleTryParse("1E4294967297B", ParseResult.Invalid, null);
AssertDoubleTryParse("1E-4294967297", ParseResult.Success, 0);
}
[Test]