]> git.saurik.com Git - wxWidgets.git/commitdiff
Check encoding names case insensitively
authorMichael Wetherell <mike.wetherell@ntlworld.com>
Wed, 15 Feb 2006 12:58:50 +0000 (12:58 +0000)
committerMichael Wetherell <mike.wetherell@ntlworld.com>
Wed, 15 Feb 2006 12:58:50 +0000 (12:58 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37595 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

tests/fontmap/fontmaptest.cpp

index 7961eda949089fbab49d3adafd762081fbf07c56..0f3e562227af2f88599eb790149e01e713ba8ae4 100644 (file)
@@ -110,7 +110,7 @@ void FontMapperTestCase::NamesAndDesc()
     for ( size_t n = 0; n < WXSIZEOF(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] );
     }
 }