mirror of
https://github.com/pocoproject/poco.git
synced 2025-04-27 18:30:51 +02:00
fix XP/VS2003 tests
This commit is contained in:
parent
9a67596f00
commit
16533ef73b
@ -230,8 +230,11 @@ void NumberParserTest::testLimits()
|
|||||||
|
|
||||||
void NumberParserTest::testParseError()
|
void NumberParserTest::testParseError()
|
||||||
{
|
{
|
||||||
const char dp = decimalSeparator();
|
char dp = decimalSeparator();
|
||||||
const char ts = thousandSeparator();
|
if (dp == 0) dp = '.';
|
||||||
|
char ts = thousandSeparator();
|
||||||
|
if (ts == 0) ts = ',';
|
||||||
|
assert (dp != ts);
|
||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
|
@ -665,8 +665,11 @@ void StringTest::testStringToDouble()
|
|||||||
|
|
||||||
void StringTest::testStringToFloatError()
|
void StringTest::testStringToFloatError()
|
||||||
{
|
{
|
||||||
const char ds = decimalSeparator();
|
char ds = decimalSeparator();
|
||||||
const char ts = thousandSeparator();
|
if (ds == 0) ds = '.';
|
||||||
|
char ts = thousandSeparator();
|
||||||
|
if (ts == 0) ts = ',';
|
||||||
|
assert (ds != ts);
|
||||||
|
|
||||||
double result = 0.0;
|
double result = 0.0;
|
||||||
assert (!strToDouble(format("a12%c3", ds), result));
|
assert (!strToDouble(format("a12%c3", ds), result));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user