From 11224d2df09658c18aba3a71bd84ae314234f715 Mon Sep 17 00:00:00 2001 From: Patrick Ohly Date: Tue, 14 May 2013 21:42:37 +0200 Subject: PIM testing: sorting test for de The test only passes for Germany. In Austria, ICU itself does not return the results mentioned in Wikipedia. Therefore that test is commented out. --- src/dbus/server/pim/testpim.py | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/src/dbus/server/pim/testpim.py b/src/dbus/server/pim/testpim.py index 69e2a88d..143acb56 100755 --- a/src/dbus/server/pim/testpim.py +++ b/src/dbus/server/pim/testpim.py @@ -2288,6 +2288,29 @@ END:VCARD ), ) + @timeout(60) + @property("ENV", "LC_TYPE=de_DE.UTF-8 LC_ALL=de_DE.UTF-8 LANG=de_DE.UTF-8") + def testFilterGermany(self): + self.doFilter(# Names of all contacts, sorted as expected. + # DIN 5007 Variant 2 defines phone book sorting in + # Germany. It does not apply to Austria. + # Example from http://de.wikipedia.org/wiki/Alphabetische_Sortierung + (u'Göbel', u'Goethe', u'Göthe', u'Götz', u'Goldmann'), + (), + ) + + # Not supported correctly by ICU? + # See icu-support "Subject: Austrian phone book sorting" + # @timeout(60) + # @property("ENV", "LC_TYPE=de_AT.UTF-8 LC_ALL=de_AT.UTF-8 LANG=de_AT.UTF-8") + # def testFilterAustria(self): + # self.doFilter(# Names of all contacts, sorted as expected. + # # Austrian phone book sorting. + # # Example from http://de.wikipedia.org/wiki/Alphabetische_Sortierung + # (u'Goethe', u'Goldmann', u'Göbel', u'Göthe', u'Götz'), + # (), + # ) + @timeout(60) @property("ENV", "LC_TYPE=de_DE.UTF-8 LC_ALL=de_DE.UTF-8 LANG=de_DE.UTF-8") def testFilterQuiescence(self): -- cgit v1.2.3