Fixes in factory and registry validation tests

This commit is contained in:
2025-11-29 23:02:06 -05:00
parent 44ec65eef4
commit 858439713a
2 changed files with 5 additions and 5 deletions

View File

@@ -179,7 +179,7 @@ test "validates numeric-only BBANs (68 countries, 64.8%)" do
# Verify they are actually numeric
Enum.each(numeric_ibans, fn iban ->
{:ok, parsed} = Parser.parse(iban)
bban = String.slice(iban, 4..-1//1
bban = String.slice(iban, 4..-1//1)
assert bban =~ ~r/^\d+$/,
"Expected numeric BBAN for #{parsed.country_code}, got: #{bban}"
@@ -194,7 +194,7 @@ test "validates alphanumeric BBANs (31+ countries, 29.5%)" do
# Verify they contain letters
Enum.each(alphanumeric_ibans, fn iban ->
bban = String.slice(iban, 4..-1//1
bban = String.slice(iban, 4..-1//1)
assert bban =~ ~r/[A-Z]/,
"Expected alphanumeric BBAN for #{iban}, got: #{bban}"