Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@maxim092001
Copy link
Contributor

Implementation for #4600. Same to #4721, but commits from personal github.

Moved three generators from CharInstances to Gen

However, I'm not sure about javadoc description and shrinks. Please, check them out.

Copy link
Contributor

@adamgfraser adamgfraser left a comment

Choose a reason for hiding this comment

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

Just one small change and then good to go.

/**
* A generator of alpha characters.
*/
val alphaChar: Gen[Random, Char] =
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we alphabetize please? Otherwise looks great!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sorry, didn't get what you mean.
Alphabetize random char generator?

Copy link
Contributor

Choose a reason for hiding this comment

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

Oh sorry. Just put the constructors in alphabetical order with all the existing constructors. So like right now whiteSpaceChars is near the top of the file above the existing alphaNumericString generator but it should be towards the end of the file after the weighted constructor. It doesn't actually change the logic of your implementation but just makes it easier for users and contributors to find things in the file, especially when it is a large one like this one.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ok, I think now they are alphabetized:)

Copy link
Contributor

@adamgfraser adamgfraser left a comment

Choose a reason for hiding this comment

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

Looks great! Thanks for adding!

@adamgfraser adamgfraser merged commit 0c28749 into zio:master Feb 28, 2021
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.

2 participants