Skip to content

Commit

Permalink
Türkiye'ye Hoşgeldiniz
Browse files Browse the repository at this point in the history
  • Loading branch information
yakupcemilk committed Nov 15, 2023
1 parent d32441d commit bb8398e
Show file tree
Hide file tree
Showing 11 changed files with 12 additions and 12 deletions.
6 changes: 3 additions & 3 deletions include/faker-cxx/types/Country.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ enum class Country
Finland,
Nepal,
Spain,
Turkey,
Turkiye,
Czech,
Slovakia,
Ukraine,
Expand All @@ -32,7 +32,7 @@ enum class Country
const std::vector<Country> countries{
Country::Usa, Country::England, Country::Poland, Country::Italy, Country::France, Country::Germany,
Country::Russia, Country::Romania, Country::India, Country::Finland, Country::Nepal, Country::Spain,
Country::Turkey, Country::Czech, Country::Slovakia, Country::Ukraine, Country::Denmark, Country::Sweden};
Country::Turkiye, Country::Czech, Country::Slovakia, Country::Ukraine, Country::Denmark, Country::Sweden};

inline std::string toString(Country country)
{
Expand All @@ -41,7 +41,7 @@ inline std::string toString(Country country)
{Country::Italy, "Italy"}, {Country::France, "France"}, {Country::Germany, "Germany"},
{Country::Russia, "Russia"}, {Country::Romania, "Romania"}, {Country::India, "India"},
{Country::Finland, "Finland"}, {Country::Nepal, "Nepal"}, {Country::Spain, "Spain"},
{Country::Turkey, "Turkey"}, {Country::Czech, "Czech"}, {Country::Slovakia, "Slovakia"},
{Country::Turkiye, "Turkiye"}, {Country::Czech, "Czech"}, {Country::Slovakia, "Slovakia"},
{Country::Ukraine, "Ukraine"}, {Country::Denmark, "Denmark"}, {Country::Sweden, "Sweden"}};

return countryToStringMapping.at(country);
Expand Down
2 changes: 1 addition & 1 deletion include/faker-cxx/types/PhoneNumberCountryFormat.h
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ enum class PhoneNumberCountryFormat
Tonga,
TrinidadAndTobago,
Tunisia,
Turkey,
Turkiye,
Turkmenistan,
TurksAndCaicosIslands,
Tuvalu,
Expand Down
2 changes: 1 addition & 1 deletion src/modules/location/LocationTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ TEST_F(LocationTest, shouldGenerateTurkiyeCity)
const auto generatedCity = Location::city(Country::Turkiye);

ASSERT_TRUE(
std::ranges::any_of(turkeyCities, [generatedCity](const std::string& city) { return city == generatedCity; }));
std::ranges::any_of(turkiyeCities, [generatedCity](const std::string& city) { return city == generatedCity; }));
}

TEST_F(LocationTest, shouldGenerateTurkiyeZipCode)
Expand Down
2 changes: 1 addition & 1 deletion src/modules/location/data/Countries.h
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ const std::vector<std::string> allCountries = {"Afghanistan",
"Tonga",
"Trinidad and Tobago",
"Tunisia",
"Turkey",
"Turkiye",
"Turkmenistan",
"Turks and Caicos Islands",
"Tuvalu",
Expand Down
4 changes: 2 additions & 2 deletions src/modules/person/Person.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
#include "data/slovakia/SlovakPeopleNames.h"
#include "data/spain/SpanishPeopleNames.h"
#include "data/sweden/SwedishPeopleNames.h"
#include "data/turkey/TurkishPeopleNames.h"
#include "data/turkiye/TurkishPeopleNames.h"
#include "data/ukraine/UkrainianPeopleNames.h"
#include "data/usa/UsaPeopleNames.h"
#include "data/ZodiacSigns.h"
Expand All @@ -43,7 +43,7 @@ const std::map<Country, PeopleNames> countryToPeopleNamesMapping{
{Country::Poland, polishPeopleNames}, {Country::Russia, russianPeopleNames},
{Country::Romania, romanianPeopleNames}, {Country::India, indianPeopleNames},
{Country::Finland, finnishPeopleNames}, {Country::Nepal, nepalesePeopleNames},
{Country::Spain, spanishPeopleNames}, {Country::Turkey, turkishPeopleNames},
{Country::Spain, spanishPeopleNames}, {Country::Turkiye, turkishPeopleNames},
{Country::Czech, czechPeopleNames}, {Country::Slovakia, slovakPeopleNames},
{Country::Ukraine, ukrainianPeopleNames}, {Country::Denmark, danishPeopleNames},
{Country::Sweden, swedishPeopleNames}, {Country::Usa, usaPeopleNames}};
Expand Down
6 changes: 3 additions & 3 deletions src/modules/person/PersonTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
#include "data/slovakia/SlovakPeopleNames.h"
#include "data/spain/SpanishPeopleNames.h"
#include "data/sweden/SwedishPeopleNames.h"
#include "data/turkey/TurkishPeopleNames.h"
#include "data/turkiye/TurkishPeopleNames.h"
#include "data/ukraine/UkrainianPeopleNames.h"
#include "data/ZodiacSigns.h"
#include "src/modules/person/data/PeopleNames.h"
Expand All @@ -43,7 +43,7 @@ const std::map<Country, PeopleNames> countryToPeopleNamesMapping{
{Country::Poland, polishPeopleNames}, {Country::Russia, russianPeopleNames},
{Country::Romania, romanianPeopleNames}, {Country::India, indianPeopleNames},
{Country::Finland, finnishPeopleNames}, {Country::Nepal, nepalesePeopleNames},
{Country::Spain, spanishPeopleNames}, {Country::Turkey, turkishPeopleNames},
{Country::Spain, spanishPeopleNames}, {Country::Turkiye, turkishPeopleNames},
{Country::Czech, czechPeopleNames}, {Country::Slovakia, slovakPeopleNames},
{Country::Ukraine, ukrainianPeopleNames}, {Country::Denmark, danishPeopleNames},
{Country::Sweden, swedishPeopleNames}, {Country::Usa, usaPeopleNames}};
Expand All @@ -54,7 +54,7 @@ const std::map<Country, std::string> generatedTestName{
{Country::Poland, "shouldGeneratePolishName"}, {Country::Russia, "shouldGenerateRussianName"},
{Country::Romania, "shouldGenerateRomanianName"}, {Country::India, "shouldGenerateIndianName"},
{Country::Finland, "shouldGenerateFinnishName"}, {Country::Nepal, "shouldGenerateNepaleseName"},
{Country::Spain, "shouldGenerateSpanishName"}, {Country::Turkey, "shouldGenerateTurkishName"},
{Country::Spain, "shouldGenerateSpanishName"}, {Country::Turkiye, "shouldGenerateTurkishName"},
{Country::Czech, "shouldGenerateCzechName"}, {Country::Slovakia, "shouldGenerateSlovakName"},
{Country::Ukraine, "shouldGenerateUkrainianName"}, {Country::Denmark, "shouldGenerateDanishName"},
{Country::Sweden, "shouldGenerateSwedishName"}, {Country::Usa, "shouldGenerateAmericanName"}};
Expand Down
2 changes: 1 addition & 1 deletion src/modules/phone/data/PhoneNumbers.h
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ const std::vector<std::string> phoneNumbers = {
"+676 (##) ####", // Tonga
"+1 (###) ###-####", // Trinidad and Tobago
"+216 (##) ###-###", // Tunisia
"+90 (###) ###-####", // Turkey
"+90 (###) ###-####", // Turkiye
"+993 (#) ###-####", // Turkmenistan
"+1 (###) ###-####", // Turks and Caicos Islands
"+688 (###) ####", // Tuvalu
Expand Down

0 comments on commit bb8398e

Please sign in to comment.