[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    [kdelibs/KDE/4.8] kdecore/tests: Make sure the decimal symbol during testing is ".", which the tests
From:       Sebastian Trueg <trueg () kde ! org>
Date:       2012-01-27 13:20:42
Message-ID: 20120127132042.B20E8A6135 () git ! kde ! org
[Download RAW message or body]

Git commit d3c03795f6b469d3f5ad51873fc0137205b1cc6e by Sebastian Trueg, on =
behalf of Till Adam.
Committed on 09/01/2012 at 15:10.
Pushed by trueg into branch 'KDE/4.8'.

Make sure the decimal symbol during testing is ".", which the tests assume.

M  +3    -1    kdecore/tests/klocalizedstringtest.cpp

http://commits.kde.org/kdelibs/d3c03795f6b469d3f5ad51873fc0137205b1cc6e

diff --git a/kdecore/tests/klocalizedstringtest.cpp b/kdecore/tests/klocali=
zedstringtest.cpp
index cb05847..b2276ca 100644
--- a/kdecore/tests/klocalizedstringtest.cpp
+++ b/kdecore/tests/klocalizedstringtest.cpp
@@ -50,12 +50,14 @@ void KLocalizedStringTest::initTestCase ()
 =

     if (m_hasFrench)
         KGlobal::locale()->setLanguage(QStringList() << "fr" << "en_US");
-    KGlobal::locale()->setThousandsSeparator(QString(","));
+    KGlobal::locale()->setThousandsSeparator(QLatin1String(","));
+    KGlobal::locale()->setDecimalSymbol(QLatin1String("."));
     QCOMPARE(KGlobal::locale()->isApplicationTranslatedInto("en_US"), true=
);
 =

     if (m_hasFrench) {
         QCOMPARE(KGlobal::locale()->isApplicationTranslatedInto("fr"), tru=
e);
     }
+
 }
 =

 void KLocalizedStringTest::correctSubs ()

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic