1Test2::Compare::Scalar(U3s)er Contributed Perl DocumentatTieosnt2::Compare::Scalar(3)
2
3
4

NAME

6       Test2::Compare::Scalar - Representation of a Scalar Ref in deep
7       comparisons
8

DESCRIPTION

10       This is used in deep comparisons to represent a scalar reference.
11

SYNOPSIS

13           my $sr = Test2::Compare::Scalar->new(item => 'foo');
14
15           is([\'foo'], $sr, "pass");
16           is([\'bar'], $sr, "fail, different value");
17           is(['foo'],  $sr, "fail, not a ref");
18

SOURCE

20       The source code repository for Test2-Suite can be found at
21       https://github.com/Test-More/Test2-Suite/.
22

MAINTAINERS

24       Chad Granum <exodist@cpan.org>
25

AUTHORS

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