Disable non-trivial CompareStrings() tests in ANSI build

UTF-8 strings can't be used in this case and we don't care enough about
this deprecated build to bother with using Latin-1 just for it.
This commit is contained in:
Vadim Zeitlin
2021-09-01 01:24:33 +02:00
parent 3f8fd90c31
commit b306cfba26

View File

@@ -315,6 +315,8 @@ TEST_CASE("wxUILocale::CompareStrings", "[uilocale]")
#endif
}
// UTF-8 strings are not supported in ASCII build.
#if wxUSE_UNICODE
SECTION("German")
{
const wxUILocale l(wxLocaleIdent("de").Region("DE"));
@@ -351,6 +353,7 @@ TEST_CASE("wxUILocale::CompareStrings", "[uilocale]")
CHECK( l.CompareStrings(u8("ä"), "ae") == 1 );
CHECK( l.CompareStrings(u8("ö"), "z" ) == 1 );
}
#endif // wxUSE_UNICODE
}
#endif // wxUSE_INTL