I use ScalaCheck for automatic unit testing. Its default String generator (that is, its default Arbitrary[String] instance) is a little powerful too , usually creating an unreadable mess consisting mostly of characters that I am not trying to support, and my system cannot even do.
I decided to create several instances of Arbitrary[String] , and I'm trying to figure out what is there. Here are a few examples of String classes that would be useful for testing:
- core multilingual string strings
- astral strings
- latin strings (including extensions a / b)
- French words
- lines from left to right Language lines
- from right to left
- Chinese offers
- Web Strings (strings taken from a character set of 99.9999% of web content).
- use your imagination ...
Are there libraries that can make these or similar strings randomly?
source share