Permalink
Browse files

fix XP/VS2003 tests

  • Loading branch information...
1 parent 9a67596 commit 16533ef73b7d4b68c0fac5247769aed800704bc0 @aleks-f aleks-f committed Dec 21, 2012
Showing with 10 additions and 4 deletions.
  1. +5 −2 Foundation/testsuite/src/NumberParserTest.cpp
  2. +5 −2 Foundation/testsuite/src/StringTest.cpp
@@ -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
{
@@ -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));

0 comments on commit 16533ef

Please sign in to comment.