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/scalarref.t
use strict;
use warnings;
use lib 't/lib';

use Std;

{
  check_test(
    sub {
      cmp_deeply(\"a", \"a", "scalar ref eq");
    },
    {
      name => "scalar ref eq",
      actual_ok => 1,
      diag => "",
    }
  );
  check_test(
    sub {
      cmp_deeply(\"a", \"b", "scalar ref not eq");
    },
    {
      name => "scalar ref not eq",
      actual_ok => 0,
      diag => <<EOM,
Compared \${\$data}
   got : 'a'
expect : 'b'
EOM
    }
  );
  check_test(
    sub {
      cmp_deeply({}, \"a", "scalar ref not ref");
    },
    {
      name => "scalar ref not ref",
      actual_ok => 0,
      diag => <<EOM,
Compared reftype(\$data)
   got : 'HASH'
expect : 'SCALAR'
EOM
    }
  );
}