committed latest 1.3 snapshot

This commit is contained in:
Guenter Obiltschnig
2007-04-18 16:22:57 +00:00
parent a8332eaaf3
commit b7a945da93
94 changed files with 6724 additions and 329 deletions

View File

@@ -1,7 +1,7 @@
//
// NumberParserTest.cpp
//
// $Id: //poco/Main/Foundation/testsuite/src/NumberParserTest.cpp#9 $
// $Id: //poco/Main/Foundation/testsuite/src/NumberParserTest.cpp#10 $
//
// Copyright (c) 2004-2006, Applied Informatics Software Engineering GmbH.
// and Contributors.
@@ -105,6 +105,15 @@ void NumberParserTest::testParseError()
catch (SyntaxException&)
{
}
try
{
NumberParser::parseHex("23z");
failmsg("must throw SyntaxException");
}
catch (SyntaxException&)
{
}
#if defined(POCO_HAVE_INT64)
@@ -134,6 +143,15 @@ void NumberParserTest::testParseError()
catch (SyntaxException&)
{
}
try
{
NumberParser::parseHex64("12345z");
failmsg("must throw SyntaxException");
}
catch (SyntaxException&)
{
}
#endif
@@ -145,6 +163,15 @@ void NumberParserTest::testParseError()
catch (SyntaxException&)
{
}
try
{
NumberParser::parseFloat("12.3aa");
failmsg("must throw SyntaxException");
}
catch (SyntaxException&)
{
}
}