1Test2::Compare::Ref(3)User Contributed Perl DocumentationTest2::Compare::Ref(3)
2
3
4

NAME

6       Test2::Compare::Ref - Ref comparison
7

DESCRIPTION

9       Used to compare two refs in a deep comparison.
10

SYNOPSIS

12           my $ref = {};
13           my $check = Test2::Compare::Ref->new(input => $ref);
14
15           # Passes
16           is( [$ref], [$check], "The array contains the exact ref we want" );
17
18           # Fails, they both may be empty hashes, but we are looking for a specific
19           # reference.
20           is( [{}], [$check], "This will fail");
21

SOURCE

23       The source code repository for Test2-Suite can be found at
24       https://github.com/Test-More/Test2-Suite/.
25

MAINTAINERS

27       Chad Granum <exodist@cpan.org>
28

AUTHORS

30       Chad Granum <exodist@cpan.org>
31
33       Copyright 2018 Chad Granum <exodist@cpan.org>.
34
35       This program is free software; you can redistribute it and/or modify it
36       under the same terms as Perl itself.
37
38       See http://dev.perl.org/licenses/
39
40
41
42perl v5.36.0                      2023-03-23            Test2::Compare::Ref(3)
Impressum