-
-
Notifications
You must be signed in to change notification settings - Fork 102
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* created estonia folder in location with neccesaay files * changed the if statement to test for linux in addition to APPLE * introduction of estonian location data The CMakeLists.txt was modified because Ubuntu 22.04 version had gcc version 11 which did not have the <format> header and did not compile on my machine so i changed the conditional to allow for it to use the fmt::format library The modification lead to updating the FormatHelper.h header to reflect the changes. in addition The fmt library was also added as dependency to the test target to enable the test compile on my machine Estonia locaction data was added which includes EstoniaAddresses EstoniaCounties EstoniaStreetNames EstoniaStreetSuffixes test was appended to the end of LocationTest using the test for denmark as a template estonia was included in AddressCountry enum finally, The estonia data was gotten from resource available on the internet and google maps so their is no guarantee that all the information are correct as i do not live in estonia. * using the format tools * debuged the added test case failuure modified the test case, included the proper headers in location source file modified CMake list by removing the dependency introduced inadverently for g++ version greater than 10 modified the EstoniaStreetNames by removing street suffixes finally corrected error in arguement passed to the estonianadresses object * minor change to check if msvc and clang would compile * reverted back to the prevoius commit where msvc and clang failed * included the extra defined statement * added extra checks for clang compiler
- Loading branch information
Showing
11 changed files
with
181 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
#pragma once | ||
|
||
#include "../CountryAddresses.h" | ||
#include "EstoniaCities.h" | ||
#include "EstoniaCounties.h" | ||
#include "EstoniaStreetNames.h" | ||
#include "EstoniaStreetSuffixes.h" | ||
|
||
namespace faker { | ||
|
||
const std::string estoniaZipCodeFormat{"#####"}; | ||
|
||
const std::vector<std::string> estoniaAddressFormats{"{street} {buildingNumber}"}; | ||
|
||
const std::vector<std::string> estoniaBuildingNumberFormats{"###", "##", "#"}; | ||
|
||
const std::vector<std::string> estoniaStreetFormats{"{streetName} {streetSuffix}"}; | ||
|
||
const std::vector<std::string> estoniaCityFormats{"{cityName}"}; | ||
|
||
const CountryAddresses estoniaAddresses{estoniaZipCodeFormat, | ||
estoniaAddressFormats, | ||
{}, | ||
estoniaStreetFormats, | ||
{}, | ||
estoniaStreetNames, | ||
estoniaStreetSuffixes, | ||
estoniaBuildingNumberFormats, | ||
estoniaCityFormats, | ||
{}, | ||
estoniaCities, | ||
{}, | ||
{}, | ||
estoniaCounties}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#pragma once | ||
|
||
#include <string> | ||
#include <vector> | ||
|
||
namespace faker | ||
{ | ||
const std::vector<std::string> estoniaCities{ | ||
"Tallinn", | ||
"Tartu", | ||
"Narva", | ||
"Pärnu", | ||
"Kohtla-Järve", | ||
|
||
}; | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
#pragma once | ||
|
||
#include <string> | ||
#include <vector> | ||
|
||
namespace faker | ||
{ | ||
const std::vector<std::string> estoniaCounties { | ||
|
||
"Harju", | ||
"Hiiu", | ||
"Ida-Viru", | ||
"Jõgeva", | ||
"Järva", | ||
"Lääne", | ||
"Lääne-Viru", | ||
"Põlva", | ||
"Pärnu", | ||
"Rapla", | ||
"Saare", | ||
"Tartu", | ||
"Valga", | ||
"Viljandi", | ||
"Võru", | ||
|
||
}; | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
#pragma once | ||
|
||
#include <string> | ||
#include <vector> | ||
|
||
namespace faker | ||
{ | ||
const std::vector<std::string> estoniaStreetNames{ | ||
"Laagna", | ||
"Punane", | ||
"Paepargi", | ||
"Pae", | ||
"Peterburi", | ||
"Valukoja", | ||
"Betooni", | ||
"Sõpruse", | ||
"Mustamäe", | ||
"Tuisu", | ||
"Külmallika", | ||
"Tammi", | ||
"Koore", | ||
"Kuubi", | ||
"Okka", | ||
"Vaba", | ||
"Tähe", | ||
"Õnne", | ||
"Aleksandri", | ||
"Kalevi", | ||
"Turu", | ||
"Tähe", | ||
"Lina", | ||
"Õnne", | ||
"Era", | ||
"Vanemuise", | ||
"Tiigi", | ||
"Tiigi", | ||
"Juhan Liivi", | ||
"K. A. Hermanni", | ||
"Veski", | ||
}; | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#pragma once | ||
|
||
#include <string> | ||
#include <vector> | ||
|
||
namespace faker | ||
{ | ||
const std::vector<std::string> estoniaStreetSuffixes { | ||
"Tänav", | ||
"tn", | ||
"Tee", | ||
"Allee", | ||
"Plats", | ||
"Käik", | ||
"Põik", | ||
}; | ||
|
||
} |