X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Faccessors_wo.t;h=9fc2bcd05a919d4ec5b26a9f5530cf10a7c2024b;hb=ed6069878c2506fed25cf5dd71c4fa6e276b80da;hp=39c5d7a5276a1a306fa11ee3f7e73645941bd7e1;hpb=4d70ba11c00e532cd69f2f044f8e27abae0ccd0b;p=p5sagit%2FClass-Accessor-Grouped.git diff --git a/t/accessors_wo.t b/t/accessors_wo.t index 39c5d7a..9fc2bcd 100644 --- a/t/accessors_wo.t +++ b/t/accessors_wo.t @@ -1,7 +1,8 @@ -use Test::More tests => 46; +use Test::More; use Test::Exception; use strict; use warnings; +no warnings 'once'; use Config; use lib 't/lib'; @@ -52,7 +53,7 @@ my $test_accessors = { custom_field => "lr2'field", }, fieldname_torture => { - custom_field => join ('', map { chr($_) } (1..255) ), # FIXME after RT#80569 is fixed 0..255 should work + custom_field => join ('', map { chr($_) } (0..255) ), is_xs => $use_xs, }, }; @@ -77,7 +78,7 @@ for my $name (sort keys %$test_accessors) { my $wo_regex = $test_accessors->{$name}{is_xs} ? qr/Usage\:.+$name.*\(self, newvalue\)/ - : qr/cannot access the value of '\Q$field\E'/ + : qr/$name(:?_accessor)?\Q' cannot access its value (write-only attribute of class AccessorGroupsWO)/ ; # die on get via name/alias @@ -101,5 +102,4 @@ for my $name (sort keys %$test_accessors) { } }; -# important -1; \ No newline at end of file +done_testing unless $::SUBTESTING;