Add big float extraction test

This commit is contained in:
ado
2023-08-08 12:29:04 +02:00
parent b7e5dd28b8
commit 848689451c
2 changed files with 14 additions and 4 deletions

View File

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