import p5-Test-Identity 0.01

OK benoit@

Comment:
assert the referential identity of a reference

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.
This commit is contained in:
bluhm 2022-11-12 09:07:36 +00:00
parent 8fffd5d685
commit 02be53daaf
4 changed files with 31 additions and 0 deletions

View File

@ -0,0 +1,20 @@
COMMENT = assert the referential identity of a reference
DISTNAME = Test-Identity-0.01
CATEGORIES = devel
MAINTAINER = Alexander Bluhm <bluhm@openbsd.org>
# Perl
PERMIT_PACKAGE = Yes
MODULES = cpan
CONFIGURE_STYLE = modbuild
MAKE_ENV = TEST_POD=Yes
PKG_ARCH = *
.include <bsd.port.mk>

View File

@ -0,0 +1,2 @@
SHA256 (Test-Identity-0.01.tar.gz) = LwIFAJrtFSZoGCqvoWNXqx9HtMvAAeiYcbZzh++OXyM=
SIZE (Test-Identity-0.01.tar.gz) = 10889

View File

@ -0,0 +1,6 @@
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.

View File

@ -0,0 +1,3 @@
${P5SITE}/Test/
${P5SITE}/Test/Identity.pm
@man man/man3p/Test::Identity.3p