Check encoding names case insensitively
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37595 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -110,7 +110,7 @@ void FontMapperTestCase::NamesAndDesc()
|
|||||||
for ( size_t n = 0; n < WXSIZEOF(charsets); n++ )
|
for ( size_t n = 0; n < WXSIZEOF(charsets); n++ )
|
||||||
{
|
{
|
||||||
wxFontEncoding enc = wxFontMapperBase::Get()->CharsetToEncoding(charsets[n]);
|
wxFontEncoding enc = wxFontMapperBase::Get()->CharsetToEncoding(charsets[n]);
|
||||||
CPPUNIT_ASSERT( wxFontMapperBase::Get()->GetEncodingName(enc) == names[n] );
|
CPPUNIT_ASSERT( wxFontMapperBase::Get()->GetEncodingName(enc).CmpNoCase(names[n]) == 0 );
|
||||||
CPPUNIT_ASSERT( wxFontMapperBase::Get()->GetEncodingDescription(enc) == descriptions[n] );
|
CPPUNIT_ASSERT( wxFontMapperBase::Get()->GetEncodingDescription(enc) == descriptions[n] );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user