summaryrefslogtreecommitdiff
path: root/platform/ios/test/MGLNSOrthographyAdditionsTests.m
blob: b53cdcc918895eecd03d0db9a8b95035404a0a32 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#import <XCTest/XCTest.h>

#import "NSOrthography+MGLAdditions.h"
#import "MGLVectorTileSource_Private.h"

@interface MGLNSOrthographyAdditionsTests : XCTestCase

@end

@implementation MGLNSOrthographyAdditionsTests

- (void)testStreetsLanguages {
    if (@available(iOS 11.0, *)) {
        for (NSString *language in [MGLVectorTileSource mapboxStreetsLanguages]) {
            NSString *dominantScript = [NSOrthography mgl_dominantScriptForMapboxStreetsLanguage:language];
            XCTAssertNotEqualObjects(dominantScript, @"Zyyy", @"Mapbox Streets languages should have dominant script");
        }
    }
}

@end