From a785705a5c821e216dbbe26fec0dfb84bca10aaa Mon Sep 17 00:00:00 2001 From: Alex Fabijanic Date: Sun, 26 Jun 2022 20:14:05 +0200 Subject: [PATCH] chore(NumberParserTest): add test for #2441 --- Foundation/testsuite/src/NumberParserTest.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Foundation/testsuite/src/NumberParserTest.cpp b/Foundation/testsuite/src/NumberParserTest.cpp index d6054160e..618781e28 100644 --- a/Foundation/testsuite/src/NumberParserTest.cpp +++ b/Foundation/testsuite/src/NumberParserTest.cpp @@ -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&) { } }