diff --git a/Example/MuslimData.xcodeproj/project.pbxproj b/Example/MuslimData.xcodeproj/project.pbxproj index 1968790..d4dfb7e 100755 --- a/Example/MuslimData.xcodeproj/project.pbxproj +++ b/Example/MuslimData.xcodeproj/project.pbxproj @@ -10,6 +10,9 @@ 2D110EDE216BE7FB002035FA /* PrayerTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 2D110EDD216BE7FB002035FA /* PrayerTests.swift */; }; 2D27AC4B2188E621004722BD /* LocationViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 2D27AC4A2188E621004722BD /* LocationViewController.swift */; }; 2D4558BA21694A5200A08DAF /* LocationTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 2D4558B921694A5200A08DAF /* LocationTests.swift */; }; + 2D4EC4D42B835D7C00F08DCB /* IQCityMapperTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 2D4EC4D32B835D7C00F08DCB /* IQCityMapperTests.swift */; }; + 2D4EC4D72B83637A00F08DCB /* IRCityMapperTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 2D4EC4D62B83637A00F08DCB /* IRCityMapperTests.swift */; }; + 2D4EC4D92B83639E00F08DCB /* KWCityMapperTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 2D4EC4D82B83639E00F08DCB /* KWCityMapperTests.swift */; }; 2D6B21C421708D600054F8C0 /* NamesTest.swift in Sources */ = {isa = PBXBuildFile; fileRef = 2D6B21C321708D600054F8C0 /* NamesTest.swift */; }; 2D9FC355217278E0003EF074 /* AzkarTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 2D9FC354217278E0003EF074 /* AzkarTests.swift */; }; 2DBD7E7B218E01AF00B6595B /* AzkarChaptersViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 2DBD7E7A218E01AF00B6595B /* AzkarChaptersViewController.swift */; }; @@ -40,6 +43,9 @@ 2D110EDD216BE7FB002035FA /* PrayerTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = PrayerTests.swift; sourceTree = ""; }; 2D27AC4A2188E621004722BD /* LocationViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = LocationViewController.swift; sourceTree = ""; }; 2D4558B921694A5200A08DAF /* LocationTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = LocationTests.swift; sourceTree = ""; }; + 2D4EC4D32B835D7C00F08DCB /* IQCityMapperTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = IQCityMapperTests.swift; sourceTree = ""; }; + 2D4EC4D62B83637A00F08DCB /* IRCityMapperTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = IRCityMapperTests.swift; sourceTree = ""; }; + 2D4EC4D82B83639E00F08DCB /* KWCityMapperTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = KWCityMapperTests.swift; sourceTree = ""; }; 2D6B21C321708D600054F8C0 /* NamesTest.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = NamesTest.swift; sourceTree = ""; }; 2D9FC354217278E0003EF074 /* AzkarTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AzkarTests.swift; sourceTree = ""; }; 2DBD7E7A218E01AF00B6595B /* AzkarChaptersViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AzkarChaptersViewController.swift; sourceTree = ""; }; @@ -96,6 +102,16 @@ name = Pods; sourceTree = ""; }; + 2D4EC4D52B83634200F08DCB /* CityMapperTests */ = { + isa = PBXGroup; + children = ( + 2D4EC4D32B835D7C00F08DCB /* IQCityMapperTests.swift */, + 2D4EC4D62B83637A00F08DCB /* IRCityMapperTests.swift */, + 2D4EC4D82B83639E00F08DCB /* KWCityMapperTests.swift */, + ); + path = CityMapperTests; + sourceTree = ""; + }; 2DBD7E7C218E01BF00B6595B /* Azkars */ = { isa = PBXGroup; children = ( @@ -196,6 +212,7 @@ 607FACE81AFB9204008FA782 /* Tests */ = { isa = PBXGroup; children = ( + 2D4EC4D52B83634200F08DCB /* CityMapperTests */, 2D9FC354217278E0003EF074 /* AzkarTests.swift */, 2D6B21C321708D600054F8C0 /* NamesTest.swift */, 2D110EDD216BE7FB002035FA /* PrayerTests.swift */, @@ -445,9 +462,12 @@ buildActionMask = 2147483647; files = ( 2D110EDE216BE7FB002035FA /* PrayerTests.swift in Sources */, + 2D4EC4D92B83639E00F08DCB /* KWCityMapperTests.swift in Sources */, 2D6B21C421708D600054F8C0 /* NamesTest.swift in Sources */, 2D4558BA21694A5200A08DAF /* LocationTests.swift in Sources */, 2D9FC355217278E0003EF074 /* AzkarTests.swift in Sources */, + 2D4EC4D72B83637A00F08DCB /* IRCityMapperTests.swift in Sources */, + 2D4EC4D42B835D7C00F08DCB /* IQCityMapperTests.swift in Sources */, ); runOnlyForDeploymentPostprocessing = 0; }; diff --git a/Example/Tests/CityMapperTests/IQCityMapperTests.swift b/Example/Tests/CityMapperTests/IQCityMapperTests.swift new file mode 100644 index 0000000..bf5f948 --- /dev/null +++ b/Example/Tests/CityMapperTests/IQCityMapperTests.swift @@ -0,0 +1,152 @@ +// +// IQCityMapperTests.swift +// MuslimData_Tests +// +// Created by Kosrat Ahmed on 19/02/2024. +// Copyright © 2024 CocoaPods. All rights reserved. +// + +import XCTest +@testable import MuslimData + +class IQCityMapperTests: XCTestCase { + + override func setUp() { + super.setUp() + } + + override func tearDown() { + super.tearDown() + // Put teardown code here. This method is called after the invocation of each test method in the class. + } + + func testDuhokCityMapper() { + XCTAssertEqual("Sumel".mapper(countryCode: "IQ"), "Duhok") + XCTAssertEqual("Zawita".mapper(countryCode: "IQ"), "Duhok") + XCTAssertEqual("Atrish".mapper(countryCode: "IQ"), "Duhok") + XCTAssertEqual("Sharya".mapper(countryCode: "IQ"), "Duhok") + XCTAssertEqual("Mrebah".mapper(countryCode: "IQ"), "Duhok") + } + + func testAkreCityMapper() { + XCTAssertEqual("Amedi".mapper(countryCode: "IQ"), "Akre") + XCTAssertEqual("Sulav".mapper(countryCode: "IQ"), "Akre") + XCTAssertEqual("Kani".mapper(countryCode: "IQ"), "Akre") + XCTAssertEqual("Sheladiz".mapper(countryCode: "IQ"), "Akre") + XCTAssertEqual("Barzan".mapper(countryCode: "IQ"), "Akre") + XCTAssertEqual("Bele".mapper(countryCode: "IQ"), "Akre") + XCTAssertEqual("Shanidar".mapper(countryCode: "IQ"), "Akre") + XCTAssertEqual("Bujal".mapper(countryCode: "IQ"), "Akre") + XCTAssertEqual("Mergin".mapper(countryCode: "IQ"), "Akre") + XCTAssertEqual("Susna".mapper(countryCode: "IQ"), "Akre") + XCTAssertEqual("Sersink".mapper(countryCode: "IQ"), "Akre") + } + + func testBardarashCityMapper() { + XCTAssertEqual("Mamuzin".mapper(countryCode: "IQ"), "Bardarash") + } + + func testErbilCityMapper() { + XCTAssertEqual("Kalak".mapper(countryCode: "IQ"), "Erbil") + XCTAssertEqual("Pirmam".mapper(countryCode: "IQ"), "Erbil") + XCTAssertEqual("Shaqlawa".mapper(countryCode: "IQ"), "Erbil") + XCTAssertEqual("Harir".mapper(countryCode: "IQ"), "Erbil") + XCTAssertEqual("Khalifan".mapper(countryCode: "IQ"), "Erbil") + XCTAssertEqual("Rawanduz".mapper(countryCode: "IQ"), "Erbil") + XCTAssertEqual("Soran".mapper(countryCode: "IQ"), "Erbil") + XCTAssertEqual("Mergasur".mapper(countryCode: "IQ"), "Erbil") + XCTAssertEqual("Galala".mapper(countryCode: "IQ"), "Erbil") + XCTAssertEqual("Choman".mapper(countryCode: "IQ"), "Erbil") + XCTAssertEqual("Hiran".mapper(countryCode: "IQ"), "Erbil") + XCTAssertEqual("Qushtapa".mapper(countryCode: "IQ"), "Erbil") + XCTAssertEqual("Kasnazan".mapper(countryCode: "IQ"), "Erbil") + } + + func testQasreCityMapper() { + XCTAssertEqual("Wallze".mapper(countryCode: "IQ"), "Qasre") + XCTAssertEqual("Soraban".mapper(countryCode: "IQ"), "Qasre") + XCTAssertEqual("Shnawa".mapper(countryCode: "IQ"), "Qasre") + XCTAssertEqual("Rashdur".mapper(countryCode: "IQ"), "Qasre") + XCTAssertEqual("Makosan".mapper(countryCode: "IQ"), "Qasre") + XCTAssertEqual("Saya".mapper(countryCode: "IQ"), "Qasre") + XCTAssertEqual("Walash".mapper(countryCode: "IQ"), "Qasre") + XCTAssertEqual("Eskawa".mapper(countryCode: "IQ"), "Qasre") + XCTAssertEqual("Xazena".mapper(countryCode: "IQ"), "Qasre") + XCTAssertEqual("Dilman".mapper(countryCode: "IQ"), "Qasre") + XCTAssertEqual("Sarkan".mapper(countryCode: "IQ"), "Qasre") + XCTAssertEqual("Chomsak".mapper(countryCode: "IQ"), "Qasre") + XCTAssertEqual("Qalat".mapper(countryCode: "IQ"), "Qasre") + XCTAssertEqual("Koila".mapper(countryCode: "IQ"), "Qasre") + XCTAssertEqual("Mawnan".mapper(countryCode: "IQ"), "Qasre") + XCTAssertEqual("Wasan".mapper(countryCode: "IQ"), "Qasre") + XCTAssertEqual("Choma".mapper(countryCode: "IQ"), "Qasre") + XCTAssertEqual("Mergay Khwaru".mapper(countryCode: "IQ"), "Qasre") + XCTAssertEqual("Kani Bast".mapper(countryCode: "IQ"), "Qasre") + } + + func testKirkukCityMapper() { + XCTAssertEqual("Taza Khurmatu".mapper(countryCode: "IQ"), "Kirkuk") + } + + func testSulaymaniyahCityMapper() { + XCTAssertEqual("Mawat".mapper(countryCode: "IQ"), "Sulaymaniyah") + XCTAssertEqual("Arbat".mapper(countryCode: "IQ"), "Sulaymaniyah") + } + + func testQaladizaCityMapper() { + XCTAssertEqual("Halsho".mapper(countryCode: "IQ"), "Qaladiza") + XCTAssertEqual("Nawdasht".mapper(countryCode: "IQ"), "Qaladiza") + XCTAssertEqual("Tasluja".mapper(countryCode: "IQ"), "Qaladiza") + XCTAssertEqual("Bazian".mapper(countryCode: "IQ"), "Qaladiza") + XCTAssertEqual("Sangasar".mapper(countryCode: "IQ"), "Qaladiza") + XCTAssertEqual("Zharawa".mapper(countryCode: "IQ"), "Qaladiza") + XCTAssertEqual("Bngrd".mapper(countryCode: "IQ"), "Qaladiza") + XCTAssertEqual("Hero".mapper(countryCode: "IQ"), "Qaladiza") + } + + func testDokanCityMapper() { + XCTAssertEqual("Piramagroon".mapper(countryCode: "IQ"), "Dokan") + } + + func testRanyaCityMapper() { + XCTAssertEqual("Hajiawa".mapper(countryCode: "IQ"), "Ranya") + XCTAssertEqual("Sarkapkan".mapper(countryCode: "IQ"), "Ranya") + XCTAssertEqual("Khalakan".mapper(countryCode: "IQ"), "Ranya") + XCTAssertEqual("Taqtaq".mapper(countryCode: "IQ"), "Ranya") + XCTAssertEqual("Hizop".mapper(countryCode: "IQ"), "Ranya") + XCTAssertEqual("Chwarqurna".mapper(countryCode: "IQ"), "Ranya") + } + + func testChamchamalCityMapper() { + XCTAssertEqual("Takiya".mapper(countryCode: "IQ"), "Chamchamal") + XCTAssertEqual("Takiay Jabari".mapper(countryCode: "IQ"), "Chamchamal") + XCTAssertEqual("Shorsh".mapper(countryCode: "IQ"), "Chamchamal") + XCTAssertEqual("Aghjalar".mapper(countryCode: "IQ"), "Chamchamal") + XCTAssertEqual("Sangaw".mapper(countryCode: "IQ"), "Chamchamal") + } + + func testDarbandikhanCityMapper() { + XCTAssertEqual("Zalan".mapper(countryCode: "IQ"), "Darbandikhan") + XCTAssertEqual("Gapilon".mapper(countryCode: "IQ"), "Darbandikhan") + XCTAssertEqual("Chwarta".mapper(countryCode: "IQ"), "Darbandikhan") + XCTAssertEqual("Barzinjah".mapper(countryCode: "IQ"), "Darbandikhan") + XCTAssertEqual("Zarayan".mapper(countryCode: "IQ"), "Darbandikhan") + XCTAssertEqual("Halebjai Taza".mapper(countryCode: "IQ"), "Darbandikhan") + XCTAssertEqual("Qara Dagh".mapper(countryCode: "IQ"), "Darbandikhan") + } + + func testPenjwenCityMapper() { + XCTAssertEqual("Garmk".mapper(countryCode: "IQ"), "Penjwen") + XCTAssertEqual("Nalparez".mapper(countryCode: "IQ"), "Penjwen") + XCTAssertEqual("Said Sadiq".mapper(countryCode: "IQ"), "Penjwen") + XCTAssertEqual("Pshta".mapper(countryCode: "IQ"), "Penjwen") + } + + func testHalabjaCityMapper() { + XCTAssertEqual("Sirwan".mapper(countryCode: "IQ"), "Halabja") + XCTAssertEqual("Byara".mapper(countryCode: "IQ"), "Halabja") + XCTAssertEqual("Tawella".mapper(countryCode: "IQ"), "Halabja") + XCTAssertEqual("Balkha".mapper(countryCode: "IQ"), "Halabja") + XCTAssertEqual("Khurmal".mapper(countryCode: "IQ"), "Halabja") + } +} diff --git a/Example/Tests/CityMapperTests/IRCityMapperTests.swift b/Example/Tests/CityMapperTests/IRCityMapperTests.swift new file mode 100644 index 0000000..2124a27 --- /dev/null +++ b/Example/Tests/CityMapperTests/IRCityMapperTests.swift @@ -0,0 +1,34 @@ +// +// IRCityMapperTests.swift +// MuslimData_Tests +// +// Created by Kosrat Ahmed on 19/02/2024. +// Copyright © 2024 CocoaPods. All rights reserved. +// + +import XCTest +@testable import MuslimData + +class IRCityMapperTests: XCTestCase { + + override func setUp() { + super.setUp() + } + + override func tearDown() { + super.tearDown() + // Put teardown code here. This method is called after the invocation of each test method in the class. + } + + + func testSanandajCityMapper() { + XCTAssertEqual("Kamyaran".mapper(countryCode: "IR"), "Sanandaj") + XCTAssertEqual("Divandarreh".mapper(countryCode: "IR"), "Sanandaj") + XCTAssertEqual("Dehgolan".mapper(countryCode: "IR"), "Sanandaj") + XCTAssertEqual("Qorveh".mapper(countryCode: "IR"), "Sanandaj") + } + + func testUrmiaCityMapper() { + XCTAssertEqual("Orumiyeh".mapper(countryCode: "IR"), "Urmia") + } +} diff --git a/Example/Tests/CityMapperTests/KWCityMapperTests.swift b/Example/Tests/CityMapperTests/KWCityMapperTests.swift new file mode 100644 index 0000000..29ce8d5 --- /dev/null +++ b/Example/Tests/CityMapperTests/KWCityMapperTests.swift @@ -0,0 +1,93 @@ +// +// KWCityMapperTests.swift +// MuslimData_Tests +// +// Created by Kosrat Ahmed on 19/02/2024. +// Copyright © 2024 CocoaPods. All rights reserved. +// + +import XCTest +@testable import MuslimData + +class KWCityMapperTests: XCTestCase { + + override func setUp() { + super.setUp() + } + + override func tearDown() { + super.tearDown() + // Put teardown code here. This method is called after the invocation of each test method in the class. + } + + func testAlAsimahCityMapper() { + XCTAssertEqual("Kuwait City".mapper(countryCode: "KW"), "Al Asimah") + XCTAssertEqual("Dasman Palace".mapper(countryCode: "KW"), "Al Asimah") + XCTAssertEqual("Sharq".mapper(countryCode: "KW"), "Al Asimah") + XCTAssertEqual("Mirqab".mapper(countryCode: "KW"), "Al Asimah") + XCTAssertEqual("Jibla".mapper(countryCode: "KW"), "Al Asimah") + XCTAssertEqual("Dasma".mapper(countryCode: "KW"), "Al Asimah") + XCTAssertEqual("Daiya".mapper(countryCode: "KW"), "Al Asimah") + XCTAssertEqual("Salhia".mapper(countryCode: "KW"), "Al Asimah") + XCTAssertEqual("Bneid Al Qar".mapper(countryCode: "KW"), "Al Asimah") + XCTAssertEqual("Kaifan".mapper(countryCode: "KW"), "Al Asimah") + XCTAssertEqual("Mansouriya".mapper(countryCode: "KW"), "Al Asimah") + XCTAssertEqual("Abdullah Al-Salem".mapper(countryCode: "KW"), "Al Asimah") + XCTAssertEqual("Nuzha".mapper(countryCode: "KW"), "Al Asimah") + XCTAssertEqual("Faiha".mapper(countryCode: "KW"), "Al Asimah") + XCTAssertEqual("Shamiya".mapper(countryCode: "KW"), "Al Asimah") + XCTAssertEqual("Rawda".mapper(countryCode: "KW"), "Al Asimah") + XCTAssertEqual("Adailiya".mapper(countryCode: "KW"), "Al Asimah") + XCTAssertEqual("Khaldiya".mapper(countryCode: "KW"), "Al Asimah") + XCTAssertEqual("Qadsiya".mapper(countryCode: "KW"), "Al Asimah") + XCTAssertEqual("Qortuba".mapper(countryCode: "KW"), "Al Asimah") + XCTAssertEqual("Surra".mapper(countryCode: "KW"), "Al Asimah") + XCTAssertEqual("Yarmouk".mapper(countryCode: "KW"), "Al Asimah") + XCTAssertEqual("Shuwaikh Industrial".mapper(countryCode: "KW"), "Al Asimah") + XCTAssertEqual("Rai".mapper(countryCode: "KW"), "Al Asimah") + XCTAssertEqual("Granada".mapper(countryCode: "KW"), "Al Asimah") + XCTAssertEqual("Sulaibikhat".mapper(countryCode: "KW"), "Al Asimah") + XCTAssertEqual("Doha".mapper(countryCode: "KW"), "Al Asimah") + XCTAssertEqual("Nahdha".mapper(countryCode: "KW"), "Al Asimah") + XCTAssertEqual("Jaber Al Ahmad".mapper(countryCode: "KW"), "Al Asimah") + XCTAssertEqual("Qairawan".mapper(countryCode: "KW"), "Al Asimah") + XCTAssertEqual("Ahmadi".mapper(countryCode: "KW"), "Al Asimah") + XCTAssertEqual("Al Wafrah".mapper(countryCode: "KW"), "Al Asimah") + XCTAssertEqual("Sabah Al Salem".mapper(countryCode: "KW"), "Al Asimah") + XCTAssertEqual("Messila".mapper(countryCode: "KW"), "Al Asimah") + XCTAssertEqual("Al-Masayel".mapper(countryCode: "KW"), "Al Asimah") + XCTAssertEqual("Adan".mapper(countryCode: "KW"), "Al Asimah") + XCTAssertEqual("Fnaitees".mapper(countryCode: "KW"), "Al Asimah") + XCTAssertEqual("Qusor".mapper(countryCode: "KW"), "Al Asimah") + XCTAssertEqual("Qurain".mapper(countryCode: "KW"), "Al Asimah") + XCTAssertEqual("Abu Fatira".mapper(countryCode: "KW"), "Al Asimah") + XCTAssertEqual("Mubarak Al Kabeer".mapper(countryCode: "KW"), "Al Asimah") + XCTAssertEqual("Jeleeb Al-Shuyoukh".mapper(countryCode: "KW"), "Al Asimah") + XCTAssertEqual("Eqaila".mapper(countryCode: "KW"), "Al Asimah") + XCTAssertEqual("Fintas".mapper(countryCode: "KW"), "Al Asimah") + XCTAssertEqual("Dahar".mapper(countryCode: "KW"), "Al Asimah") + XCTAssertEqual("Mahboula".mapper(countryCode: "KW"), "Al Asimah") + XCTAssertEqual("Hadiya".mapper(countryCode: "KW"), "Al Asimah") + XCTAssertEqual("Al-Riqqa".mapper(countryCode: "KW"), "Al Asimah") + XCTAssertEqual("Abu Halifa".mapper(countryCode: "KW"), "Al Asimah") + XCTAssertEqual("Fahad Al Ahmad".mapper(countryCode: "KW"), "Al Asimah") + XCTAssertEqual("Assabahiyah".mapper(countryCode: "KW"), "Al Asimah") + XCTAssertEqual("Mangaf".mapper(countryCode: "KW"), "Al Asimah") + XCTAssertEqual("Fahaheel".mapper(countryCode: "KW"), "Al Asimah") + XCTAssertEqual("South Sabahiya".mapper(countryCode: "KW"), "Al Asimah") + XCTAssertEqual("Ali Sabah Al Salem".mapper(countryCode: "KW"), "Al Asimah") + XCTAssertEqual("Shalayhat Mina Abdullah".mapper(countryCode: "KW"), "Al Asimah") + XCTAssertEqual("Zour".mapper(countryCode: "KW"), "Al Asimah") + XCTAssertEqual("Al Khiran".mapper(countryCode: "KW"), "Al Asimah") + } + + func testFailakaIslandCityMapper() { + XCTAssertEqual("Zoor".mapper(countryCode: "KW"), "Failaka Island") + XCTAssertEqual("Kubbar Island".mapper(countryCode: "KW"), "Failaka Island") + XCTAssertEqual("Al-Nuwaiseeb".mapper(countryCode: "KW"), "Failaka Island") + } + + func testAbdaliCityMapper() { + XCTAssertEqual("Jahra".mapper(countryCode: "KW"), "Abdali") + } +} diff --git a/Example/Tests/LocationTests.swift b/Example/Tests/LocationTests.swift index 484dab32..7fa02b8 100755 --- a/Example/Tests/LocationTests.swift +++ b/Example/Tests/LocationTests.swift @@ -101,26 +101,4 @@ class LocationTests: XCTestCase { XCTAssertEqual(location!.hasFixedPrayerTime, true) } } - - func testCityMapper() { - XCTAssertEqual("Sulav".mapper(countryCode: "IQ"), "Akre") - XCTAssertEqual("Mamuzin".mapper(countryCode: "IQ"), "Bardarash") - XCTAssertEqual("Zarayan".mapper(countryCode: "IQ"), "Darbandikhan") - XCTAssertEqual("Atrish".mapper(countryCode: "IQ"), "Duhok") - XCTAssertEqual("Choman".mapper(countryCode: "IQ"), "Erbil") - XCTAssertEqual("Byara".mapper(countryCode: "IQ"), "Halabja") - XCTAssertEqual("Hajiawa".mapper(countryCode: "IQ"), "Ranya") - XCTAssertEqual("Taza Khurmatu".mapper(countryCode: "IQ"), "Kirkuk") - XCTAssertEqual("Khalakan".mapper(countryCode: "IQ"), "Ranya") - XCTAssertEqual("Sangasar".mapper(countryCode: "IQ"), "Qaladiza") - XCTAssertEqual("Takiya".mapper(countryCode: "IQ"), "Chamchamal") - XCTAssertEqual("Divandarreh".mapper(countryCode: "IR"), "Sanandaj") - XCTAssertEqual("Rai".mapper(countryCode: "KW"), "Al Asimah") - XCTAssertEqual("Kubbar Island".mapper(countryCode: "KW"), "Failaka Island") - XCTAssertEqual("Jahra".mapper(countryCode: "KW"), "Abdali") - XCTAssertEqual("Wallze".mapper(countryCode: "IQ"), "Qasre") - XCTAssertEqual("Koila".mapper(countryCode: "IQ"), "Qasre") - XCTAssertNotEqual("Rai".mapper(countryCode: "IQ"), "Qasre") - XCTAssertNotEqual("Choman".mapper(countryCode: "IQ"), "Qasre") - } } diff --git a/MuslimData/Assets/cityMapper.json b/MuslimData/Assets/cityMapper.json index 095b3e3..0376502 100755 --- a/MuslimData/Assets/cityMapper.json +++ b/MuslimData/Assets/cityMapper.json @@ -21,7 +21,7 @@ "Urmia": ["Orumiyeh"] }, "KW": { - "Al Asimah": ["Kuwait City", "Dasman Palace", "Sharq", "Mirqab", "Jibla", "Dasma", "Daiya", "Salhia", "Bneid Al Qar", "Kaifan", "Mansouriya", "Abdullah al-Salem", "Nuzha", "Faiha", "Shamiya", "Rawda", "Adailiya", "Khaldiya", "Qadsiya", "Qortuba", "Surra", "Yarmouk", "Shuwaikh Industrial", "Rai", "Granada", "Sulaibikhat", "Doha", "Nahdha", "Jaber Al Ahmad", "Qairawan", "Ahmadi", "Al Wafrah", "Sabah Al Salem", "Messila", "Al-Masayel", "Adan", "Fnaitees", "Qusor", "Qurain", "Abu Fatira", "Mubarak Al Kabeer", "Jeleeb Al-Shuyoukh", "Eqaila", "Fintas", "Dahar", "Mahboula", "Hadiya", "Al-Riqqa", "Abu Halifa", "Fahad Al Ahmad", "Assabahiyah", "Mangaf", "Fahaheel", "South Sabahiya", "Ali Sabah Al Salem", "Shalayhat Mina Abdullah", "Zour", "Al Khiran"], + "Al Asimah": ["Kuwait City", "Dasman Palace", "Sharq", "Mirqab", "Jibla", "Dasma", "Daiya", "Salhia", "Bneid Al Qar", "Kaifan", "Mansouriya", "Abdullah Al-Salem", "Nuzha", "Faiha", "Shamiya", "Rawda", "Adailiya", "Khaldiya", "Qadsiya", "Qortuba", "Surra", "Yarmouk", "Shuwaikh Industrial", "Rai", "Granada", "Sulaibikhat", "Doha", "Nahdha", "Jaber Al Ahmad", "Qairawan", "Ahmadi", "Al Wafrah", "Sabah Al Salem", "Messila", "Al-Masayel", "Adan", "Fnaitees", "Qusor", "Qurain", "Abu Fatira", "Mubarak Al Kabeer", "Jeleeb Al-Shuyoukh", "Eqaila", "Fintas", "Dahar", "Mahboula", "Hadiya", "Al-Riqqa", "Abu Halifa", "Fahad Al Ahmad", "Assabahiyah", "Mangaf", "Fahaheel", "South Sabahiya", "Ali Sabah Al Salem", "Shalayhat Mina Abdullah", "Zour", "Al Khiran"], "Failaka Island": ["Zoor", "Kubbar Island", "Al-Nuwaiseeb"], "Abdali": ["Jahra"] }