tokuhirom / Test-Pretty

Other
20 stars 17 forks source link

Test fail when pass() receives arguments inside of subtest block #13

Closed sunaot closed 11 years ago

sunaot commented 11 years ago

Following test fails by "Modification of a read-only value attempted at .perl/lib/perl5/Test/Pretty.pm line 122." error. The test passes without use Test::Pretty.

use strict;
use warnings;

use Test::More;
use Test::Pretty;

subtest 'Test' => sub {
    pass 'A';
};

done_testing;
tokuhirom commented 11 years ago

Gah! It's a bug!