Skip to content

Commit d380c63

Browse files
committed
Adapt test.
1 parent 4d642bf commit d380c63

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/test/json/parse.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,8 +103,8 @@ namespace tao
103103

104104
// TODO: Other integer tests missing from integer.cc?
105105

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.
106+
TEST_THROWS( from_string( "1" + std::string( internal::max_mantissa_digits, '0' ) ) ); // Throws due to overflow.
107+
TEST_THROWS( from_string( "2" + std::string( internal::max_mantissa_digits, '1' ) ) ); // Throws due to overflow.
108108

109109
TEST_THROWS( from_string( "" ) );
110110
TEST_THROWS( from_string( "[" ) );

0 commit comments

Comments
 (0)