-
Notifications
You must be signed in to change notification settings - Fork 586
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Whitelist characters for characters strategy #668
Comments
|
I'm taking a stab at this |
|
Clarification question:
|
|
|
@moreati Well, min/max_codepoint is a bit tricky here. Obviously, those params relate to codepoints you can not specify explicitly (e.g. characters of particular categories). I would say the answer is "Yes, in your example it should generate |
|
Some questions regarding hypothesis.internal.charmap
|
I don't remember that code very well at this point, but no that sure looks like a bug to me.
In general any lack of internal documentation or commenting is not intentional and improving it is always welcome. :-) |
Hypothesis has
characters()strategy that is unicode aware and allows to specify which unicode categories to get characters from. It has white list of categories and black list of categories. Also, it hasblacklist_charactersparameter which allows to exclude certain characters.What I would like to have is a
whitelist_characters- add extra characters in addition to given categories to use during generation. E.g.characters(whitelist_categories=['Nd', 'Ll', 'Lu'], whitelist_characters='_')The text was updated successfully, but these errors were encountered: