1Test::Stream::Compare::URseefr(3C)ontributed Perl DocumeTnetsatt:i:oSntream::Compare::Ref(3)
2
3
4
6 Test::Stream::Compare::Ref - Ref comparison
7
9 This distribution is deprecated in favor of Test2, Test2::Suite, and
10 Test2::Workflow.
11
12 See Test::Stream::Manual::ToTest2 for a conversion guide.
13
15 Used to compare 2 refs in a deep comparison.
16
18 my $ref = {};
19 my $check = Test::Stream::Compare::Ref->new(input => $ref);
20
21 # Passes
22 is( [$ref], [$check], "The array contains the exact ref we want" );
23
24 # Fails, they both may be empty hashes, but we are looking for a specific
25 # reference.
26 is( [{}], [$check], "This will fail");
27
29 The source code repository for Test::Stream can be found at
30 http://github.com/Test-More/Test-Stream/.
31
33 Chad Granum <exodist@cpan.org>
34
36 Chad Granum <exodist@cpan.org>
37
39 Copyright 2015 Chad Granum <exodist7@gmail.com>.
40
41 This program is free software; you can redistribute it and/or modify it
42 under the same terms as Perl itself.
43
44 See http://dev.perl.org/licenses/
45
46
47
48perl v5.32.0 2020-07-28 Test::Stream::Compare::Ref(3)