mirror of
https://github.com/pocoproject/poco.git
synced 2024-12-12 18:20:26 +01:00
chore(NumberParserTest): add test for #2441
This commit is contained in:
parent
3f9b4067d9
commit
a785705a5c
@ -313,6 +313,13 @@ void NumberParserTest::testParseError()
|
|||||||
} catch (SyntaxException&) { }
|
} catch (SyntaxException&) { }
|
||||||
|
|
||||||
#endif // POCO_NO_FPENVIRONMENT
|
#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&) { }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user