Skip to content

random length strings within range - #100

Closed
xenoterracide wants to merge 5 commits into
apache:masterfrom
xenoterracide:topic/random-lenth-strings-within-range
Closed

random length strings within range#100
xenoterracide wants to merge 5 commits into
apache:masterfrom
xenoterracide:topic/random-lenth-strings-within-range

Conversation

@xenoterracide

Copy link
Copy Markdown
Contributor

at a high level, I have added randomGraph( int count ) and randomPrint( int count ) which map to their corresponding regular expression classes. These are useful if you're needing to test arbitrary user input in various kinds of text fields. randomAscii was not sufficient due to it's inclusion of the DEL character.

I have also added variants of random Ascii, graph, print, alphabetic, alphanumeric, and numeric that have minimumInclusive and maximumInclusive parameters. These can be used to create string of random length to ensure more random distribution of data when testing. The will also ensure that developers who use them are less likely to forget testing variable lengths within the bounds.

…ar expression

These are useful over randomAscii because they do not contain the DEL character but otherwise contrain the full range of ASCII printing characters, and optionally include whitespace. This is useful for testing user defined inputs where characters like spaces, angle brakets, semicolons, dashes, etc, can cause issues.
these methods are useful for testing bound assumption issues
@xenoterracide
xenoterracide deleted the topic/random-lenth-strings-within-range branch June 28, 2015 07:33
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.

1 participant