⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.177
Server IP:
50.6.168.112
Server:
Linux server-617809.webnetzimbabwe.com 5.14.0-570.25.1.el9_6.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Jul 9 04:57:09 EDT 2025 x86_64
Server Software:
Apache
PHP Version:
8.4.10
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
home
/
.cpan
/
build
/
Test-Deep-1.204-0
/
t
/
View File Name :
leaf-wrapper.t
use strict; use warnings; use lib 't/lib'; use Std; { check_test( sub { cmp_deeply( Test::Deep::EqOverloaded->new, 5); }, { actual_ok => 0, }, "comparing a plain scalar leaf against obj without eq" ); { local $Test::Deep::LeafWrapper = \&str; check_tests( sub { cmp_deeply( Test::Deep::EqOverloaded->new, 5); cmp_deeply( Test::Deep::EqOverloaded->new, 6); }, [ { actual_ok => 1, }, { actual_ok => 0, }, ], "comparing a plain scalar leaf against obj with eq" ); } { check_tests( sub { my $t1 = 5; my $t2 = any(5); my $t3 = all(5); local $Test::Deep::LeafWrapper = \&str; cmp_deeply(Test::Deep::EqOverloaded->new, $t1); cmp_deeply(Test::Deep::EqOverloaded->new, $t2); cmp_deeply(Test::Deep::EqOverloaded->new, $t3); }, [ { actual_ok => 1, }, { actual_ok => 1, }, { actual_ok => 1, }, ], "comparing a plain scalar leaf against obj with eq via any() and all()" ); } } { package Test::Deep::EqOverloaded; use overload q{""} => sub { "5" }, fallback => 1; sub new { my $self = {}; bless $self; } }