Test2::Compare::Type(3pm)

Test2::Compare::Type3pm

Use a type to validate values in a deep comparison.

Overview

This allows you to validate a value's type in a deep comparison. Sometimes a value just needs to look right, it may not need to be exact. An example is that you care that your code always returns an integer, but you don't care whether it is 192 or 3.

Caveats

The definitions of Boolean, integer and number are exactly the same as those in Scalar::Type, which this is a thin wrapper around.

Feedback

I welcome feedback about my code, especially constructive criticism.

Conspiracy

This module is also free-as-in-mason software.

Bugs

If you find any bugs please report them on Github, preferably with a test case.

From libscalar-type-perl 1.0.1-1+b1 in Debian 13 (Trixie). Parsed by carta from the page's man source.