Skip to content

Commit

Permalink
fix XP/VS2003 tests
Browse files Browse the repository at this point in the history
  • Loading branch information
aleks-f committed Dec 21, 2012
1 parent 9a67596 commit 16533ef
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
7 changes: 5 additions & 2 deletions Foundation/testsuite/src/NumberParserTest.cpp
Expand Up @@ -230,8 +230,11 @@ void NumberParserTest::testLimits()

void NumberParserTest::testParseError()
{
const char dp = decimalSeparator();
const char ts = thousandSeparator();
char dp = decimalSeparator();
if (dp == 0) dp = '.';
char ts = thousandSeparator();
if (ts == 0) ts = ',';
assert (dp != ts);

try
{
Expand Down
7 changes: 5 additions & 2 deletions Foundation/testsuite/src/StringTest.cpp
Expand Up @@ -665,8 +665,11 @@ void StringTest::testStringToDouble()

void StringTest::testStringToFloatError()
{
const char ds = decimalSeparator();
const char ts = thousandSeparator();
char ds = decimalSeparator();
if (ds == 0) ds = '.';
char ts = thousandSeparator();
if (ts == 0) ts = ',';
assert (ds != ts);

double result = 0.0;
assert (!strToDouble(format("a12%c3", ds), result));
Expand Down

0 comments on commit 16533ef

Please sign in to comment.