Fix string-convert tests for Windows and hopefully macOS/OS X

Tests requires a locale installed on the host that uses a comma as the decimal
mark/point.
This commit is contained in:
Tim Mayberry 2017-04-17 13:16:12 +10:00
parent c6747c9325
commit 272e02b6c8
2 changed files with 125 additions and 40 deletions

View file

@ -4,6 +4,7 @@
class StringConvertTest : public CppUnit::TestFixture
{
CPPUNIT_TEST_SUITE (StringConvertTest);
CPPUNIT_TEST (test_required_locales);
CPPUNIT_TEST (test_int16_conversion);
CPPUNIT_TEST (test_uint16_conversion);
CPPUNIT_TEST (test_int32_conversion);
@ -17,6 +18,7 @@ class StringConvertTest : public CppUnit::TestFixture
CPPUNIT_TEST_SUITE_END ();
public:
void test_required_locales ();
void test_int16_conversion ();
void test_uint16_conversion ();
void test_int32_conversion ();