Subject: | LENGTH 0 validation fails |
additional test demonstrating the bug:
[ahartmai@ahartmai-nb FormValidator-Simple-0.28]$ diff -u t/08_length.t
t/08_length-new.t
--- t/08_length.t 2011-05-17 10:27:36.166427423 +0200
+++ t/08_length-new.t 2011-05-17 10:27:25.866412319 +0200
@@ -1,5 +1,5 @@
use strict;
-use Test::More tests => 7;
+use Test::More tests => 8;
use CGI;
BEGIN{ use_ok("FormValidator::Simple") }
@@ -44,3 +44,8 @@
ok(!$r6->invalid('text'));
+my $r7 = FormValidator::Simple->check( $q => [
+ text => [[qw/LENGTH 0 8/]],
+] );
+
+ok(!$r7->invalid(''));