-
-
Notifications
You must be signed in to change notification settings - Fork 163
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added location addresses data from Belgium (#531)
* Added location addresses data from Belgium * resolved the failing tests related to Belgium street addresses. --------- Co-authored-by: Michał Cieślar <[email protected]>
- Loading branch information
1 parent
779427c
commit 8899000
Showing
8 changed files
with
618 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,7 +25,8 @@ enum class AddressCountry | |
Estonia, | ||
Romania, | ||
Latvia, | ||
Nepal | ||
Nepal, | ||
Belgium | ||
}; | ||
|
||
class Location | ||
|
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,37 @@ | ||
#pragma once | ||
|
||
#include "../CountryAddresses.h" | ||
#include "BelgiumCities.h" | ||
#include "BelgiumStates.h" | ||
#include "BelgiumStreetSuffixes.h" | ||
#include "BelgiumStreetPrefixes.h" | ||
|
||
namespace faker | ||
{ | ||
const std::string belgiumZipCodeFormat{"####"}; | ||
|
||
const std::vector<std::string> belgiumAddressFormats{"{buildingNumber} {street}"}; | ||
|
||
const std::vector<std::string> belgiumSecondaryAddressFormats{"Apt. ###", "Étage #"}; | ||
|
||
const std::vector<std::string> belgiumBuildingNumberFormats{ "#", "##", "###", "###a", "###b", "###c", "###/2",}; | ||
|
||
const std::vector<std::string> belgiumStreetFormats{"{streetPrefix} {streetSuffix}"}; | ||
|
||
const std::vector<std::string> belgiumCityFormats{"{cityName}"}; | ||
|
||
const CountryAddresses belgiumAddresses{belgiumZipCodeFormat, | ||
belgiumAddressFormats, | ||
belgiumSecondaryAddressFormats, | ||
belgiumStreetFormats, | ||
belgiumStreetPrefixes, | ||
{}, | ||
belgiumStreetSuffixes, | ||
belgiumBuildingNumberFormats, | ||
belgiumCityFormats, | ||
{}, | ||
belgiumCities, | ||
{}, | ||
belgiumStates, | ||
{}}; | ||
} |
Oops, something went wrong.