Skip to content

Commit

Permalink
try new alg on ci
Browse files Browse the repository at this point in the history
  • Loading branch information
igas committed Oct 2, 2023
1 parent 74e4ba9 commit f4846bb
Show file tree
Hide file tree
Showing 7 changed files with 42 additions and 42 deletions.
2 changes: 1 addition & 1 deletion lib/faker/address/pt_br.ex
Original file line number Diff line number Diff line change
Expand Up @@ -1096,7 +1096,7 @@ defmodule Faker.Address.PtBr do
## Examples
iex> Faker.Address.PtBr.street_prefix()
"Recanto"
"Loteamento"
iex> Faker.Address.PtBr.street_prefix()
"Estação"
iex> Faker.Address.PtBr.street_prefix()
Expand Down
6 changes: 3 additions & 3 deletions lib/faker/code.ex
Original file line number Diff line number Diff line change
Expand Up @@ -87,11 +87,11 @@ defmodule Faker.Code do
iex> Faker.Code.iban("NL", ["ABNA"])
"NL16ABNA0154264610"
iex> Faker.Code.iban("MC", ["FOO", "BAR"])
"MC98FOOBAR83"
"MC87FOOBAR87"
iex> Faker.Code.iban("SM", ["A"])
"SM86A2970523570AY38NWIVZ5XT"
"SM81A835246853054B1PZQC0M2F"
iex> Faker.Code.iban("MC", ["FOO", "BAR"])
"MC40FOOBAR60"
"MC42FOOBAR24"
"""
defdelegate iban(), to: Faker.Code.Iban
defdelegate iban(country_code_or_codes), to: Faker.Code.Iban
Expand Down
30 changes: 15 additions & 15 deletions lib/faker/code/iban.ex
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ defmodule Faker.Code.Iban do
## Examples
iex> Faker.Code.Iban.iban
"GI88LRCE6SQ3CQJGP3UHAJD"
"GB40RSEN51816878352468"
iex> Faker.Code.Iban.iban("NL")
"NL26VYOC3032097337"
"NL66BFKT6311328440"
iex> Faker.Code.Iban.iban(["NL", "BE"])
"NL74YRFX4598109960"
"BE75247216844230"
iex> Faker.Code.Iban.iban(["NL", "BE"])
"BE31198979502980"
"""
Expand Down Expand Up @@ -98,13 +98,13 @@ defmodule Faker.Code.Iban do
## Examples
iex> Faker.Code.Iban.iban
"GI88LRCE6SQ3CQJGP3UHAJD"
"GB40RSEN51816878352468"
iex> Faker.Code.Iban.iban
"BR0302030320973376033745981CB"
"CY2630963113QC0M2F8UZ4RA6C2K"
iex> Faker.Code.Iban.iban
"BE98607198979502"
"HU95093988127422606786660319"
iex> Faker.Code.Iban.iban
"PT72807856869061130164499"
"SE3576273193418566753613"
"""
def iban, do: iban(Keyword.keys(@iso_iban_specs))

Expand All @@ -116,13 +116,13 @@ defmodule Faker.Code.Iban do
## Examples
iex> Faker.Code.Iban.iban("FR")
"FR650154264610QJGP3UHAJDJ02"
"FR816706551816YJO7X82MYZ109"
iex> Faker.Code.Iban.iban("BE")
"BE95030320973376"
"BE88631132844072"
iex> Faker.Code.Iban.iban(["NL", "BE"])
"NL31RFXY5981099607"
"NL71XOZU8442309398"
iex> Faker.Code.Iban.iban(["BE", "DE"])
"DE57989795029807856869"
"BE89127422606786"
"""
def iban(country_code_or_codes), do: iban(country_code_or_codes, [])

Expand All @@ -133,13 +133,13 @@ defmodule Faker.Code.Iban do
## Examples
iex> Faker.Code.Iban.iban("NL", ["ABNA"])
"NL16ABNA0154264610"
"NL88ABNA6706551816"
iex> Faker.Code.Iban.iban("MC", ["FOO", "BAR"])
"MC98FOOBAR83"
"MC87FOOBAR87"
iex> Faker.Code.Iban.iban("SM", ["A"])
"SM86A2970523570AY38NWIVZ5XT"
"SM81A835246853054B1PZQC0M2F"
iex> Faker.Code.Iban.iban("MC", ["FOO", "BAR"])
"MC40FOOBAR60"
"MC42FOOBAR24"
"""
@spec iban(atom | binary | [binary], [binary]) :: binary
def iban(country_code, prefix_components) when is_binary(country_code),
Expand Down
40 changes: 20 additions & 20 deletions lib/faker/file.ex
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,13 @@ defmodule Faker.File do
## Examples
iex> Faker.File.file_extension()
"txt"
"tiff"
iex> Faker.File.file_extension()
"html"
iex> Faker.File.file_extension()
"flac"
"txt"
iex> Faker.File.file_extension()
"odt"
"jpeg"
"""
@spec file_extension() :: String.t()
def file_extension do
Expand All @@ -65,9 +65,9 @@ defmodule Faker.File do
iex> Faker.File.file_extension(:image)
"tiff"
iex> Faker.File.file_extension(:audio)
"flac"
"mp3"
iex> Faker.File.file_extension(:office)
"xls"
"ppt"
"""
@spec file_extension(atom) :: String.t()
def file_extension(category) do
Expand All @@ -82,13 +82,13 @@ defmodule Faker.File do
## Examples
iex> Faker.File.file_name()
"aliquam.jpg"
"et.mp3"
iex> Faker.File.file_name()
"deleniti.flac"
"sequi.txt"
iex> Faker.File.file_name()
"qui.jpg"
"corrupti.webm"
iex> Faker.File.file_name()
"quibusdam.webm"
"veritatis.webm"
"""
@spec file_name() :: String.t()
def file_name do
Expand All @@ -102,13 +102,13 @@ defmodule Faker.File do
## Examples
iex> Faker.File.file_name(:text)
"aliquam.txt"
"et.txt"
iex> Faker.File.file_name(:video)
"sint.mp4"
"et.mp4"
iex> Faker.File.file_name(:image)
"consequatur.bmp"
"aut.tiff"
iex> Faker.File.file_name(:audio)
"qui.wav"
"corrupti.wav"
"""
@spec file_name(atom) :: String.t()
def file_name(category) do
Expand All @@ -121,13 +121,13 @@ defmodule Faker.File do
## Examples
iex> Faker.File.mime_type()
"model/mesh"
"model/x3d+xml"
iex> Faker.File.mime_type()
"image/tiff"
"audio/webm"
iex> Faker.File.mime_type()
"message/partial"
"multipart/encrypted"
iex> Faker.File.mime_type()
"audio/webm"
"video/webm"
"""
@spec mime_type :: String.t()
def mime_type do
Expand All @@ -144,11 +144,11 @@ defmodule Faker.File do
## Examples
iex> Faker.File.mime_type(:image)
"image/vnd.microsoft.icon"
"image/pjpeg"
iex> Faker.File.mime_type(:audio)
"audio/mp4"
"audio/webm"
iex> Faker.File.mime_type(:application)
"application/xop+xml"
"application/rss+xml"
iex> Faker.File.mime_type(:video)
"video/mpeg"
"""
Expand Down
2 changes: 1 addition & 1 deletion lib/faker/gov/us.ex
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ defmodule Faker.Gov.Us do
## Examples
iex> Faker.Gov.Us.ssn
"838-84-5749"
"181-72-0614"
iex> Faker.Gov.Us.ssn
"719-41-8674"
iex> Faker.Gov.Us.ssn
Expand Down
2 changes: 1 addition & 1 deletion lib/faker/internet.ex
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ defmodule Faker.Internet do
## Examples
iex> Faker.Internet.mac_address()
"d6:d9:8b:88:c8:66"
"3e:69:dc:50:27:c5"
iex> Faker.Internet.mac_address()
"f4:96:db:d4:de:7b"
iex> Faker.Internet.mac_address()
Expand Down
2 changes: 1 addition & 1 deletion lib/faker/internet/es.ex
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ defmodule Faker.Internet.Es do
## Examples
iex> Faker.Internet.Es.domain_suffix()
"com"
"es"
iex> Faker.Internet.Es.domain_suffix()
"es"
iex> Faker.Internet.Es.domain_suffix()
Expand Down

0 comments on commit f4846bb

Please sign in to comment.