Package : perl-Test-Identity > RPM : perl-Test-Identity-0.10.0-10.mga9.src.rpm
Basic items
Name | perl-Test-Identity |
Version | 0.10.0 |
Release | 10.mga9 |
URL | https://metacpan.org/release/Test-Identity |
Group | Development/Perl |
Summary | Assert the referential identity of a reference |
Size | 14KB |
Arch | noarch |
License | GPL+ or Artistic |
Description
This module provides a single testing function, 'identical'. It asserts
that a given reference is as expected; that is, it either refers to the
same object or is 'undef'. It is similar to 'Test::More::is' except that it
uses 'refaddr', ensuring that it behaves correctly even if the references
under test are objects that overload stringification or numification.
It also provides better diagnostics if the test fails:
$ perl -MTest::More=tests,1 -MTest::Identity -e'identical [], {}'
1..1
not ok 1
that a given reference is as expected; that is, it either refers to the
same object or is 'undef'. It is similar to 'Test::More::is' except that it
uses 'refaddr', ensuring that it behaves correctly even if the references
under test are objects that overload stringification or numification.
It also provides better diagnostics if the test fails:
$ perl -MTest::More=tests,1 -MTest::Identity -e'identical [], {}'
1..1
not ok 1
Media information
Distribution release | Mageia cauldron |
Media name | core-release |
Media arch | i586 |
Advanced items
Source RPM | NOT IN DATABASE ?! |
Build time | 2022-03-20 14:44:10 |
Changelog | View in Sophie |
Files | View in Sophie |
Dependencies | View in Sophie |