Finally do fix use of wxTranslateFromUnicodeFormat() in the unit test.
Don't reference the never defined function in the test any more. (This does) close #16118.
This commit is contained in:
@@ -1449,15 +1449,15 @@ void DateTimeTestCase::TestDateOnly()
|
|||||||
CPPUNIT_ASSERT_EQUAL( wxDateTime::Today(), wxDateTime::Now().GetDateOnly() );
|
CPPUNIT_ASSERT_EQUAL( wxDateTime::Today(), wxDateTime::Now().GetDateOnly() );
|
||||||
}
|
}
|
||||||
|
|
||||||
#if defined(__WINDOWS__) || defined(__WXOSX__)
|
|
||||||
|
|
||||||
// This function is defined in src/common/intl.cpp and as it is not public we
|
|
||||||
// need to declare it here explicitly.
|
|
||||||
WXDLLIMPEXP_BASE
|
|
||||||
wxString wxTranslateFromUnicodeFormat(const wxString& fmt);
|
|
||||||
|
|
||||||
void DateTimeTestCase::TestTranslateFromUnicodeFormat()
|
void DateTimeTestCase::TestTranslateFromUnicodeFormat()
|
||||||
{
|
{
|
||||||
|
#if defined(__WINDOWS__) || defined(__WXOSX__)
|
||||||
|
// This function is defined in src/common/intl.cpp and as it is not public we
|
||||||
|
// need to declare it here explicitly.
|
||||||
|
WXDLLIMPEXP_BASE
|
||||||
|
wxString wxTranslateFromUnicodeFormat(const wxString& fmt);
|
||||||
|
|
||||||
|
|
||||||
// Test single quote handling...
|
// Test single quote handling...
|
||||||
|
|
||||||
CPPUNIT_ASSERT_EQUAL("", wxTranslateFromUnicodeFormat("'"));
|
CPPUNIT_ASSERT_EQUAL("", wxTranslateFromUnicodeFormat("'"));
|
||||||
@@ -1484,8 +1484,7 @@ void DateTimeTestCase::TestTranslateFromUnicodeFormat()
|
|||||||
|
|
||||||
CPPUNIT_ASSERT_EQUAL("'%H o'clock: It's about time'",
|
CPPUNIT_ASSERT_EQUAL("'%H o'clock: It's about time'",
|
||||||
wxTranslateFromUnicodeFormat("''H 'o''clock: It''s about time'''"));
|
wxTranslateFromUnicodeFormat("''H 'o''clock: It''s about time'''"));
|
||||||
|
#endif // ports having wxTranslateFromUnicodeFormat()
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif // ports having wxTranslateFromUnicodeFormat()
|
|
||||||
|
|
||||||
#endif // wxUSE_DATETIME
|
#endif // wxUSE_DATETIME
|
||||||
|
Reference in New Issue
Block a user