aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMike FABIAN <mike.fabian@basyskom.de>2010-07-15 14:10:27 +0300
committerMike FABIAN <mike.fabian@basyskom.de>2010-07-15 15:38:27 +0300
commit8a83628308bf9dc17dc96d7f7aa58b356afe101a (patch)
treed3e37df4813b57a3538ec789277744e75bd07b2a /tests
parent7b5b82b59b851d3f109dd1c16443ed24ec0b109c (diff)
Changes: add test for MLocale::createCLocale()
RevBy: TrustMe
Diffstat (limited to 'tests')
-rw-r--r--tests/ft_locales/ft_locales.cpp8
-rw-r--r--tests/ft_locales/ft_locales.h1
2 files changed, 9 insertions, 0 deletions
diff --git a/tests/ft_locales/ft_locales.cpp b/tests/ft_locales/ft_locales.cpp
index 7f787a0b..3ea2d78a 100644
--- a/tests/ft_locales/ft_locales.cpp
+++ b/tests/ft_locales/ft_locales.cpp
@@ -102,6 +102,14 @@ void Ft_Locales::testMLocaleConstructor()
delete testLocale2;
}
+void Ft_Locales::testCreateCLocale()
+{
+ MLocale cLocale = MLocale::createCLocale();
+ MLocale en_US_POSIX_locale("en_US_POSIX");
+ QCOMPARE(cLocale.name(), QString("en_US_POSIX"));
+ QCOMPARE(en_US_POSIX_locale.name(), QString("en_US_POSIX"));
+}
+
void Ft_Locales::testLocaleNameParsingFunctions_data()
{
QTest::addColumn<QString>("localeName");
diff --git a/tests/ft_locales/ft_locales.h b/tests/ft_locales/ft_locales.h
index 131e4cf6..b1b37812 100644
--- a/tests/ft_locales/ft_locales.h
+++ b/tests/ft_locales/ft_locales.h
@@ -63,6 +63,7 @@ private slots:
void testBug169305();
void testSettingsChanged();
void testMLocaleConstructor();
+ void testCreateCLocale();
void testLocaleNameParsingFunctions_data();
void testLocaleNameParsingFunctions();