chore(NumberParserTest): add test for #2441

This commit is contained in:
Alex Fabijanic 2022-06-26 20:14:05 +02:00
parent 3f9b4067d9
commit a785705a5c

View File

@ -313,6 +313,13 @@ void NumberParserTest::testParseError()
} catch (SyntaxException&) { }
#endif // POCO_NO_FPENVIRONMENT
try
{
const char test[] = { -23, -108, -103, -24, -81, -81, 0 };
Poco::NumberParser::parse(test);
failmsg("must throw SyntaxException");
} catch (SyntaxException&) { }
}