Closed janbarasek closed 4 years ago
Can you add some tests please?
@dg Some tests added for clear cases.
I am not sure what is best behavior for input like range('á', 'ž')
. We can support all alphabets or most common characters only (stored in array or string)?
I don't think this is a good idea. Unicode ranges are rarely usable. It's not sorted logically like alphabet where the order is well defined.
Added new function
range()
for safe generating of characters interval.It can be used in Random helper for support intervals like
'0-9a-zA-Zá-ž'
(Czechá
-ž
).Thanks.