Generate a string with specified separators
I need to generate a string that could consist from words. I'm trying the following:
length(10).with(oneOf(" ,")).english()
but sometimes it generates strings that start or end with space or comma. I'm looking to a way of avoiding it. Would it be possible to also specify a separator between words?
Sounds useful. Something like this: length(10).with(wordSeparators()).english()?
Yes. Could be even shorter: length(10).with(separator(" ,")).english()
Ok, I don't know if I implement this in the nearest future. So in the meantime if this is acceptable, you can try repeaters: repeat(length(10), NUMERIC).string(", ").times(4)
BTW, this separator() can also be implemented outside of the lib. You just need to implement a specific interface.