Fix big number extraction test

This commit is contained in:
ado 2023-08-08 12:57:15 +02:00
parent 32cbfe1d17
commit b9d2c2aad9
2 changed files with 4 additions and 4 deletions

View File

@ -64,8 +64,8 @@ TEST_CASE("extract test functions for numbers with invalid inputs") {
CHECK_INVALID_CONVERSION("xxx1", float); CHECK_INVALID_CONVERSION("xxx1", float);
// number too big // number too big
CHECK_INVALID_CONVERSION((std::string{40, '1'} + "." + CHECK_INVALID_CONVERSION((std::string(40, '1') + "." +
std::string{40, '2'}), std::string(40, '2')),
double); double);
// random input for int // random input for int

View File

@ -31,8 +31,8 @@ TEST_CASE("extract test functions for numbers with invalid inputs without fast "
CHECK_INVALID_CONVERSION("xxx1", float); CHECK_INVALID_CONVERSION("xxx1", float);
// number too big // number too big
CHECK_INVALID_CONVERSION((std::string{40, '1'} + "." + CHECK_INVALID_CONVERSION((std::string(40, '1') + "." +
std::string{40, '2'}), std::string(40, '2')),
double); double);
} }