mirror of
https://github.com/xweiba/location-spoofer.git
synced 2026-09-26 00:21:55 +08:00
13 lines
598 B
Swift
13 lines
598 B
Swift
import XCTest
|
|
@testable import PaopaoLocationSpoofer
|
|
|
|
final class AppLocalizationTests: XCTestCase {
|
|
func testOnlyFirstPreferredLanguageSelectsTheAppLanguage() {
|
|
XCTAssertEqual(AppLocalization.identifier(for: ["it-IT", "zh-Hans-CN"]), "en")
|
|
XCTAssertEqual(AppLocalization.identifier(for: ["fr-FR", "zh-Hant-TW"]), "en")
|
|
XCTAssertEqual(AppLocalization.identifier(for: ["zh-Hans-CN", "it-IT"]), "zh-Hans")
|
|
XCTAssertEqual(AppLocalization.identifier(for: ["zh-Hant-TW", "en-US"]), "zh-Hant")
|
|
XCTAssertEqual(AppLocalization.identifier(for: []), "en")
|
|
}
|
|
}
|