summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMinh Nguyễn <mxn@1ec5.org>2018-11-15 23:18:11 -0800
committerMinh Nguyễn <mxn@1ec5.org>2018-11-15 23:18:11 -0800
commit44a6530e650ecbfc7172d41903df31858f15046b (patch)
treee8c8d99b29ef06c5ce9ded9c37d1500a89b9f67c
parent7dcbe23b7aa9e9fbc34051142ce8553fc3b8077c (diff)
downloadqtlocation-mapboxgl-44a6530e650ecbfc7172d41903df31858f15046b.tar.gz
[ios, macos] Fixed title case test in non-English locales
Fixed a title-casing test when run in a non-English locale. The test was written only for English anyways.
-rw-r--r--platform/darwin/test/MGLNSStringAdditionsTests.m2
1 files changed, 1 insertions, 1 deletions
diff --git a/platform/darwin/test/MGLNSStringAdditionsTests.m b/platform/darwin/test/MGLNSStringAdditionsTests.m
index a3ee7e3433..c88e8690bc 100644
--- a/platform/darwin/test/MGLNSStringAdditionsTests.m
+++ b/platform/darwin/test/MGLNSStringAdditionsTests.m
@@ -9,7 +9,7 @@
@implementation MGLNSStringAdditionsTests
- (void)testTitleCasedString {
- NSLocale *locale = [NSLocale currentLocale];
+ NSLocale *locale = [NSLocale localeWithLocaleIdentifier:@"en-US"];
XCTAssertEqualObjects([@"© OpenStreetMap" mgl_titleCasedStringWithLocale:locale], @"© OpenStreetMap");
XCTAssertEqualObjects([@"© OSM" mgl_titleCasedStringWithLocale:locale], @"© OSM");