benburkert / randexp

generate random data from a Regular Expression
MIT License
287 stars 43 forks source link

Randexp.first_name(:length = 16) error #2

Closed irjudson closed 11 years ago

irjudson commented 14 years ago

Instead of returning nil (there are no names of length 16 in the list), this throws a nil:pick error.

That seems non-intuitive.