summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorThiago Marcos P. Santos <thiago@mapbox.com>2016-07-22 14:04:31 +0300
committerThiago Marcos P. Santos <thiago@mapbox.com>2016-07-22 18:56:30 +0300
commit65e2822f21b1a3c797d8da9c00160248845370af (patch)
treed78e0e33f814c8dcc9f82d62b0c7ad13faff75b5 /test
parent0f367c93d01c98912fd658235d5e4f2a01a91fe7 (diff)
downloadqtlocation-mapboxgl-65e2822f21b1a3c797d8da9c00160248845370af.tar.gz
[Qt] Use Qt text codec instead of nunicode
Remove one extra dependency. Qt has some bugs on the text codec it seems, but it is also important to keep the behavior aligned with the client API.
Diffstat (limited to 'test')
-rw-r--r--test/util/text_conversions.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/test/util/text_conversions.cpp b/test/util/text_conversions.cpp
index 5064537859..19e30d9f3d 100644
--- a/test/util/text_conversions.cpp
+++ b/test/util/text_conversions.cpp
@@ -16,7 +16,6 @@ TEST(TextConversions, to_upper) {
EXPECT_EQ(std::string("BÊNÇÃO"), platform::uppercase("bênção")); // PT
EXPECT_EQ(std::string("AZƏRBAYCAN"), platform::uppercase("Azərbaycan")); // AZ
-
EXPECT_EQ(std::string("ὈΔΥΣΣΕΎΣ"), platform::uppercase("Ὀδυσσεύς")); // GR
}
@@ -32,6 +31,12 @@ TEST(TextConversions, to_lower) {
EXPECT_EQ(std::string("bênção"), platform::lowercase("BÊNÇÃO")); // PT
EXPECT_EQ(std::string("azərbaycan"), platform::lowercase("AZƏRBAYCAN")); // AZ
+
+#if defined(__QT__)
+ // https://bugreports.qt.io/browse/QTBUG-17337
+ EXPECT_NE(std::string("ὀδυσσεύς"), platform::lowercase("ὈΔΥΣΣΕΎΣ")); // GR
+#else
EXPECT_EQ(std::string("ὀδυσσεύς"), platform::lowercase("ὈΔΥΣΣΕΎΣ")); // GR
+#endif
}