perl-Test-Identity

Assert the Referential Identity of a Reference

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 $ perl -MTest::More=tests,1 -MTest::Identity -e'identical [], []' 1..1 not ok 1

  • Version 0.01
  • Size 18.9 KB
  • openSUSE Tumbleweed
Direct Install

Distributions

openSUSE Tumbleweed

openSUSE Leap 15.1

openSUSE Leap 15.0

openSUSE Leap 42.3

SUSE SLE-15

Unsupported distributions

The following distributions are not officially supported. Use these packages at your own risk.

SUSE:SLE-15-SP1:GA

openSUSE:Leap:42.1

openSUSE:Leap:42.2

SUSE:SLE-12:SLE-Module-Adv-Systems-Management