Formatted doctests

This commit is contained in:
Danil Negrienko 2024-03-10 20:20:15 -04:00
parent fdf28f7609
commit 51c5c1d800
2 changed files with 24 additions and 8 deletions

View File

@ -4,10 +4,18 @@ defmodule IbanEx.Country.AT do
## Examples
iex> %IbanEx.Iban{country_code: "AT", check_digits: "61", bank_code: "19043", branch_code: nil, national_check: nil, account_number: "00234573201"}
iex> |> IbanEx.Country.UA.to_string()
```elixir
iex> %IbanEx.Iban{
...> country_code: "AT",
...> check_digits: "61",
...> bank_code: "19043",
...> branch_code: nil,
...> national_check: nil,
...> account_number: "00234573201"
...> }
...> |> IbanEx.Country.AT.to_string()
"AT 61 19043 00234573201"
```
"""
@size 20

View File

@ -4,10 +4,18 @@ defmodule IbanEx.Country.BE do
## Examples
iex> %IbanEx.Iban{country_code: "BE", check_digits: "68", bank_code: "539", branch_code: nil, national_check: "34", account_number: "0075470"}
iex> |> IbanEx.Country.BE.to_string()
```elixir
iex> %IbanEx.Iban{
...> country_code: "BE",
...> check_digits: "68",
...> bank_code: "539",
...> branch_code: nil,
...> national_check: "34",
...> account_number: "0075470"
...> }
...> |> IbanEx.Country.BE.to_string()
"BE 68 539 0075470 34"
```
"""
@size 16