Files
MapLibreParticleLab/platform/ios/test/MGLNSOrthographyAdditionsTests.m
Jason Wray 0806e16eb3 [ios] Fix and expand accessibility feature transliteration
- Fixed pre-iOS 11 compatibility.
- Expanded transliteration to all supported languages.
2018-01-10 17:26:11 -05:00

20 lines
553 B
Objective-C

#import <XCTest/XCTest.h>
#import "NSOrthography+MGLAdditions.h"
#import "MGLVectorSource_Private.h"
@interface MGLNSOrthographyAdditionsTests : XCTestCase
@end
@implementation MGLNSOrthographyAdditionsTests
- (void)testStreetsLanguages {
for (NSString *language in [MGLVectorSource mapboxStreetsLanguages]) {
NSString *dominantScript = [NSOrthography mgl_dominantScriptForMapboxStreetsLanguage:language];
XCTAssertNotEqualObjects(dominantScript, @"Zyyy", @"Mapbox Streets languages should have dominant script");
}
}
@end