Skip to content

Add Faker.String.hexadecimal/1#339

Open
ilyashuma wants to merge 4 commits into
elixirs:masterfrom
ilyashuma:enhancement/string
Open

Add Faker.String.hexadecimal/1#339
ilyashuma wants to merge 4 commits into
elixirs:masterfrom
ilyashuma:enhancement/string

Conversation

@ilyashuma

Copy link
Copy Markdown

This change introduces Faker.String.hexadecimal/0 and Faker.String.hexadecimal/1 for a generation of random hexadecimal strings of a given length.

I've added:

- [ ] USAGE.md docs if applicable

  • CHANGELOG.md

@ilyashuma ilyashuma closed this May 12, 2020
@ilyashuma ilyashuma reopened this May 12, 2020
@anthonator

Copy link
Copy Markdown
Collaborator

This should probably be under Faker.Number.hexadecimal/1.

@anthonator

anthonator commented Aug 7, 2020

Copy link
Copy Markdown
Collaborator

@ilyashuma would you mind placing this under Faker.Number?

Comment thread lib/faker/string.ex
@doc """
Returns a random hexadecimal String
## Examples
iex> Faker.String.hexadecimal()

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Even though it returns a String, hexadecimal is a number according to its definition.

Suggested change
iex> Faker.String.hexadecimal()
iex> Faker.Number.hexadecimal()

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants