Test2::Compare::Type - Use a type to validate values in a deep comparison.
Contents
Bugs
If you find any bugs please report them on Github, preferably with a test case.
Caveats
The definitions of Boolean, integer and number are exactly the same as those in Scalar::Type, which this
is a thin wrapper around.
Conspiracy
This module is also free-as-in-mason software.
perl v5.40.0 2024-10-20 Test2::Compare::Type(3pm)
Description
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.
Feedback
I welcome feedback about my code, especially constructive criticism.
Name
Test2::Compare::Type - Use a type to validate values in a deep comparison.
See Also
Scalar::Type
Test2::Tools::Type
Test2
