Test2:...::Type(3pm)

πŸ“¦
version 1.0.1 Β· 3 versions
, in ubuntu stonking

πŸ’– Test2::Compare::Type πŸ’–

okay bestie, quick lil intro: this page is Test2:...::Type(3pm) from the User Contributed Perl Documentation, and it's about letting you check a value's type mid-deep-comparison. periodt. πŸ’…


✨ NAME ✨

Test2::Compare::Type β€” use a type to validate values in a deep comparison. πŸ¦‹


🌸 DESCRIPTION 🌸

So the whole vibe here is: this lets you validate a value's type inside a deep comparison. Sometimes a value just needs to look right, yk? It doesn't have to be the exact thing. πŸŽ€

Think about it like this β€” say you're obsessed with the fact that your code always returns an integer. You do not care whether it's 192 or 3. Both slay. Both are integers. That's the energy. πŸ”₯


πŸ’€ CAVEATS πŸ’€

ngl, this part matters. The definitions of Boolean, integer and number are exactly the same as those in Scalar::Type, because Scalar::Type is what this module is a thin wrapper around. No cap, no extra opinions, same definitions. 🫢


πŸ‘‘ SEE ALSO πŸ‘‘

Go read these icons too:

  • Scalar::Type
  • Test2::Tools::Type
  • Test2

πŸ› BUGS πŸ›

If you find any bugs, please report them on Github β€” and preferably bring a test case with you. Giving us the receipts is the whole assignment. πŸ™ˆ


πŸ’Œ FEEDBACK πŸ’Œ

I welcome feedback about my code, especially constructive criticism. Tell me what's not working bestie, I want to grow. 🌱


Mostly cargo-culted from Test2::Compare::Pattern. Differences from that are Copyright 2024 David Cantrell <david@cantrell.org.uk>. πŸŽ€

This software is free-as-in-speech software, and may be used, distributed, and modified under the terms of either the GNU General Public Licence version 2 or the Artistic Licence. It's up to you which one you use, fr fr β€” your call, your era. The full text of the licences can be found in the files GPL2.txt and ARTISTIC.txt, respectively. πŸ“œ


🧚 CONSPIRACY 🧚

This module is also free-as-in-mason software. Yes really. That's the whole section. Iconic. 🧱✨


okay bye bestie, that's the whole page β€” this was perl v5.42.3, dated 2026-08-20, and the manual you just read is Test2:...::Type(3pm). mwah πŸ’‹πŸ’–
πŸ“¦ where this page comes from