Fixes in factory and registry validation tests
This commit is contained in:
@@ -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}"
|
||||
|
||||
Reference in New Issue
Block a user