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

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

@interface MGLNSOrthographyAdditionsTests : XCTestCase

@end

@implementation MGLNSOrthographyAdditionsTests

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

@end