Skip to content

Commit

Permalink
Merge pull request #15 from kosratdev/update-sulaymaniyah-prayer-times
Browse files Browse the repository at this point in the history
Update sulaymaniyah prayer times
  • Loading branch information
kosratdev authored Feb 20, 2024
2 parents 66e1aec + 9c94e5f commit 90367ae
Show file tree
Hide file tree
Showing 13 changed files with 374 additions and 47 deletions.
28 changes: 24 additions & 4 deletions Example/MuslimData.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -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 */; };
Expand Down Expand Up @@ -40,6 +43,9 @@
2D110EDD216BE7FB002035FA /* PrayerTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = PrayerTests.swift; sourceTree = "<group>"; };
2D27AC4A2188E621004722BD /* LocationViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = LocationViewController.swift; sourceTree = "<group>"; };
2D4558B921694A5200A08DAF /* LocationTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = LocationTests.swift; sourceTree = "<group>"; };
2D4EC4D32B835D7C00F08DCB /* IQCityMapperTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = IQCityMapperTests.swift; sourceTree = "<group>"; };
2D4EC4D62B83637A00F08DCB /* IRCityMapperTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = IRCityMapperTests.swift; sourceTree = "<group>"; };
2D4EC4D82B83639E00F08DCB /* KWCityMapperTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = KWCityMapperTests.swift; sourceTree = "<group>"; };
2D6B21C321708D600054F8C0 /* NamesTest.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = NamesTest.swift; sourceTree = "<group>"; };
2D9FC354217278E0003EF074 /* AzkarTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AzkarTests.swift; sourceTree = "<group>"; };
2DBD7E7A218E01AF00B6595B /* AzkarChaptersViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AzkarChaptersViewController.swift; sourceTree = "<group>"; };
Expand Down Expand Up @@ -96,6 +102,16 @@
name = Pods;
sourceTree = "<group>";
};
2D4EC4D52B83634200F08DCB /* CityMapperTests */ = {
isa = PBXGroup;
children = (
2D4EC4D32B835D7C00F08DCB /* IQCityMapperTests.swift */,
2D4EC4D62B83637A00F08DCB /* IRCityMapperTests.swift */,
2D4EC4D82B83639E00F08DCB /* KWCityMapperTests.swift */,
);
path = CityMapperTests;
sourceTree = "<group>";
};
2DBD7E7C218E01BF00B6595B /* Azkars */ = {
isa = PBXGroup;
children = (
Expand Down Expand Up @@ -196,6 +212,7 @@
607FACE81AFB9204008FA782 /* Tests */ = {
isa = PBXGroup;
children = (
2D4EC4D52B83634200F08DCB /* CityMapperTests */,
2D9FC354217278E0003EF074 /* AzkarTests.swift */,
2D6B21C321708D600054F8C0 /* NamesTest.swift */,
2D110EDD216BE7FB002035FA /* PrayerTests.swift */,
Expand Down Expand Up @@ -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;
};
Expand Down Expand Up @@ -596,7 +616,7 @@
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
DEVELOPMENT_TEAM = 4HFFW4423Q;
INFOPLIST_FILE = MuslimData/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 12.0;
IPHONEOS_DEPLOYMENT_TARGET = 13.0;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
Expand All @@ -615,7 +635,7 @@
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
DEVELOPMENT_TEAM = 4HFFW4423Q;
INFOPLIST_FILE = MuslimData/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 12.0;
IPHONEOS_DEPLOYMENT_TARGET = 13.0;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
Expand All @@ -641,7 +661,7 @@
"$(inherited)",
);
INFOPLIST_FILE = Tests/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 12.0;
IPHONEOS_DEPLOYMENT_TARGET = 13.0;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
Expand All @@ -664,7 +684,7 @@
"$(inherited)",
);
INFOPLIST_FILE = Tests/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 12.0;
IPHONEOS_DEPLOYMENT_TARGET = 13.0;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
Expand Down
8 changes: 4 additions & 4 deletions Example/Pods/Pods.xcodeproj/project.pbxproj

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

152 changes: 152 additions & 0 deletions Example/Tests/CityMapperTests/IQCityMapperTests.swift
Original file line number Diff line number Diff line change
@@ -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")
}
}
34 changes: 34 additions & 0 deletions Example/Tests/CityMapperTests/IRCityMapperTests.swift
Original file line number Diff line number Diff line change
@@ -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")
}
}
Loading

0 comments on commit 90367ae

Please sign in to comment.