From 0be3072c55de50d47bc46db20059d6be18debabf Mon Sep 17 00:00:00 2001 From: joshhn Date: Sat, 13 Jan 2024 18:36:19 -0600 Subject: [PATCH] Change test --- src/modules/location/LocationTest.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/modules/location/LocationTest.cpp b/src/modules/location/LocationTest.cpp index 214cc9b4d..ab5b71995 100644 --- a/src/modules/location/LocationTest.cpp +++ b/src/modules/location/LocationTest.cpp @@ -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];