Skip to content

Commit

Permalink
Change test
Browse files Browse the repository at this point in the history
  • Loading branch information
joshhn committed Jan 14, 2024
1 parent 09b420e commit 0be3072
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/modules/location/LocationTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -205,18 +205,18 @@ TEST_P(LocationTest, shouldGenerateSecondaryAddress)
countryAddresses.secondaryAddressFormats,
[&generatedSecondaryAddress, &country](const std::string& secondaryAddressFormat)
{
const auto secondaryAddressElements = StringHelper::split(secondaryAddressFormat, " ");

const auto generatedSecondaryAddressElements = StringHelper::split(generatedSecondaryAddress, " ");

if (country == faker::AddressCountry::Finland)
{
if (generatedSecondaryAddressElements.size() == 1)
if (generatedSecondaryAddress.size() == 1)
{
return generatedSecondaryAddress == secondaryAddressFormat;
}
}

const auto secondaryAddressElements = StringHelper::split(secondaryAddressFormat, " ");

const auto generatedSecondaryAddressElements = StringHelper::split(generatedSecondaryAddress, " ");

const auto& secondaryAddressPrefix = secondaryAddressElements[0];

const auto& secondaryAddressNumber = secondaryAddressElements[1];
Expand Down

0 comments on commit 0be3072

Please sign in to comment.