We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4d642bf commit d380c63Copy full SHA for d380c63
src/test/json/parse.cc
@@ -103,8 +103,8 @@ namespace tao
103
104
// TODO: Other integer tests missing from integer.cc?
105
106
- TEST_THROWS( from_string( "1" + std::string( internal::max_mantissa_digits - 2, '0' ) + "0" ) ); // Throws due to overflow.
107
- TEST_THROWS( from_string( "1" + std::string( internal::max_mantissa_digits - 2, '0' ) + "1" ) ); // Throws due to overflow.
+ TEST_THROWS( from_string( "1" + std::string( internal::max_mantissa_digits, '0' ) ) ); // Throws due to overflow.
+ TEST_THROWS( from_string( "2" + std::string( internal::max_mantissa_digits, '1' ) ) ); // Throws due to overflow.
108
109
TEST_THROWS( from_string( "" ) );
110
TEST_THROWS( from_string( "[" ) );
0 commit comments