mirror of
https://github.com/red0124/ssp.git
synced 2025-12-16 06:39:55 +01:00
Add big float extraction test
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user