Skip to content

Commit

Permalink
Tests: fix ft_locales
Browse files Browse the repository at this point in the history
Note that I have not found when/how the issue with toLower('ẞ') was
actually fixed so I admit the version check is quite likely
inappropriate.
  • Loading branch information
martyone authored and pvuorela committed Oct 7, 2014
1 parent 1e04c1a commit 1ba2a15
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions tests/ft_locales/ft_locales.cpp
Expand Up @@ -901,6 +901,7 @@ void Ft_Locales::testMLocaleToLower_data()
<< QString("größe")
;

#if QT_VERSION < QT_VERSION_CHECK(5, 0, 0)
if(libqtcore4PackageVersion >= "4.7.2~git20110119"
&& libqtcore4PackageVersion < "4.7.4~git20110516-0maemo2") { // Qt uses libicu
QTest::newRow("de_DE")
Expand All @@ -918,7 +919,16 @@ void Ft_Locales::testMLocaleToLower_data()
<< QString("gröẞe") // Qt bug?
;
}
#else
QTest::newRow("de_DE")
<< QString("de_DE")
<< QString("GRÖẞE")
<< QString("größe")
<< QString("größe")
;
#endif

#if QT_VERSION < QT_VERSION_CHECK(5, 0, 0)
if(libqtcore4PackageVersion >= "4.7.2~git20110119"
&& libqtcore4PackageVersion < "4.7.4~git20110516-0maemo2") { // Qt uses libicu
QTest::newRow("de_CH") // no difference in behaviour to de_CH here
Expand All @@ -936,6 +946,14 @@ void Ft_Locales::testMLocaleToLower_data()
<< QString("gröẞe") // Qt bug?
;
}
#else
QTest::newRow("de_CH") // no difference in behaviour to de_CH here
<< QString("de_CH")
<< QString("GRÖẞE")
<< QString("größe")
<< QString("größe")
;
#endif

QTest::newRow("en_GB")
<< QString("en_GB")
Expand Down

0 comments on commit 1ba2a15

Please sign in to comment.