diff options
Diffstat (limited to 'platform/darwin/test/MGLClockDirectionFormatterTests.m')
-rw-r--r-- | platform/darwin/test/MGLClockDirectionFormatterTests.m | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/platform/darwin/test/MGLClockDirectionFormatterTests.m b/platform/darwin/test/MGLClockDirectionFormatterTests.m index 13e12ae2f2..1b2f058d18 100644 --- a/platform/darwin/test/MGLClockDirectionFormatterTests.m +++ b/platform/darwin/test/MGLClockDirectionFormatterTests.m @@ -1,14 +1,17 @@ #import <Mapbox/Mapbox.h> #import <XCTest/XCTest.h> -static NSString * const MGLTestLocaleIdentifier = @"en-US"; - @interface MGLClockDirectionFormatterTests : XCTestCase @end @implementation MGLClockDirectionFormatterTests +- (void)setUp { + // FIXME: https://github.com/mapbox/mapbox-gl-native/issues/14908 + XCTAssertEqualObjects(NSLocale.currentLocale.localeIdentifier, @"en_US", @"Device locale must be en_US for these tests to pass."); +} + - (void)testClockDirections { MGLClockDirectionFormatter *shortFormatter = [[MGLClockDirectionFormatter alloc] init]; shortFormatter.unitStyle = NSFormattingUnitStyleShort; |