qala-io / datagen

Java lib that generates random data (numbers, strings, dates) - mostly to facilitate Randomized Testing.
http://qala.io/blog/randomized-testing.html
Apache License 2.0
60 stars 5 forks source link

StringModifier: provide a modifier for changing the case of a string #20

Closed php-coder closed 5 years ago

php-coder commented 5 years ago

It would be good to have modifiers that convert a string to lower/upper case. At this moment, it has to be written by user and it's not just a one liner because of #19

ctapobep commented 5 years ago

Why don't you change the case after randomization? E.g. english(10).toUpperCase()?

php-coder commented 5 years ago

I've already done that but had idea that maybe it should be done on the library side.

ctapobep commented 5 years ago

Nah.. Unless pure Java is too cumbersome it should have higher priority than custom API.