HEX
Server: Apache
System: Linux server-674799.igrow.ws 5.14.0-611.30.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Feb 11 06:42:00 EST 2026 x86_64
User: elrashedytravel (1025)
PHP: 8.1.34
Disabled: exec,passthru,shell_exec,system
Upload Files
File: /home/.cpan/build/Test-Deep-1.204-0/t/hash_each.t
use strict;
use warnings;
use lib 't/lib';

use Std;

{
  my $re = qr/^wi/;
  check_test(
    sub {
      cmp_deeply(
        { a => 'wine', b => 'wind', c => 'wibble'},
        hash_each( re($re) )
      )
    },
    {
      actual_ok => 1,
      diag => "",
    },
    "hash_each eq"
  );

  check_test(
    sub {
      cmp_deeply(
        { a => 'wine', b => 'wand', c => 'wibble'},
        hash_each( re($re) )
      )
    },
    {
      actual_ok => 0,
      diag => <<EOM,
Using Regexp on \$data->{"b"}
   got : 'wand'
expect : $re
EOM
    },
    "hash_each not eq"
  );
}