| Server IP : 164.138.27.172 / Your IP : 216.73.216.143 Web Server : nginx/1.27.4 System : Linux cookingdream 6.8.0-124-generic #124-Ubuntu SMP PREEMPT_DYNAMIC Tue May 26 13:00:45 UTC 2026 x86_64 User : www-adm ( 1001) PHP Version : 8.3.32 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /home/jonasn/.cpan/build/Test-Deep-1.130-0/t/ |
Upload File : |
use strict;
use warnings;
use lib 't/lib';
use Std;
{
check_test(
sub {
cmp_deeply(["wine"], all( [re(qr/^wi/)], [re(qr/ne$/)], ["wine"]) )
},
{
actual_ok => 1,
diag => "",
},
"all eq"
);
check_test(
sub {
cmp_deeply(["wine"], all( [re(qr/^wi/)], [re(qr/ne$/)], ["wines"]) )
},
{
actual_ok => 0,
diag => <<EOM,
Compared (Part 3 of 3 in \$data)->[0]
got : 'wine'
expect : 'wines'
EOM
},
"all not eq"
);
check_tests(
sub {
cmp_deeply("wine", all(re("^wi")) & re('ne$'), "pass");
cmp_deeply("wine", all(re("^wi")) & re('na$'), "fail");
},
[
{actual_ok => 1},
{actual_ok => 0}
],
"all with &"
);
check_tests(
sub {
cmp_deeply("wine", re("^wi") & re('ne$'), "pass");
cmp_deeply("wine", re("^wi") & re('na$'), "fail");
},
[
{actual_ok => 1, diag => ""},
{actual_ok => 0}
],
"& without all"
);
}