[Koha-bugs] [Bug 14195] TestBuilder does not generate the good length for text fields

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue May 19 16:36:09 CEST 2015


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=14195

--- Comment #6 from Jonathan Druart <jonathan.druart at biblibre.com> ---
(In reply to Marcel de Rooy from comment #5)
> Small question before passing QA: why do you decrement $size here:
> 
> +    if ( defined $size and $size > 1 ) {
> +        $size--;

Because the regex, in this case, is
    [A-Za-z][A-Za-z0-9_]*
And the max size passed to String::Random is related to the wild card, not the
the size of the complete string.

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list