1Test::Stream::Compare::USscearlaCro(n3t)ributed Perl DocTuemsetn:t:aSttiroenam::Compare::Scalar(3)
2
3
4
6 Test::Stream::Compare::Scalar - Representation of a Scalar Ref in deep
7 comparisons
8
10 This distribution is deprecated in favor of Test2, Test2::Suite, and
11 Test2::Workflow.
12
13 See Test::Stream::Manual::ToTest2 for a conversion guide.
14
16 This is used in deep comparisons to represent a scalar reference.
17
19 my $sr = Test::Stream::Compare::Scalar->new(item => 'foo');
20
21 is([\'foo'], $sr, "pass");
22 is([\'bar'], $sr, "fail, different value");
23 is(['foo'], $sr, "fail, not a ref");
24
26 The source code repository for Test::Stream can be found at
27 http://github.com/Test-More/Test-Stream/.
28
30 Chad Granum <exodist@cpan.org>
31
33 Chad Granum <exodist@cpan.org>
34
36 Copyright 2015 Chad Granum <exodist7@gmail.com>.
37
38 This program is free software; you can redistribute it and/or modify it
39 under the same terms as Perl itself.
40
41 See http://dev.perl.org/licenses/
42
43
44
45perl v5.30.0 2019-07-26 Test::Stream::Compare::Scalar(3)