Test2::...:String(3)
π NAME π
Test2::Compare::String β the glow-up where two values get compared as strings β¨ (and yeah, this page lives in the User Contributed Perl Documentation section, in case you were wondering π«Ά)
πΈ DESCRIPTION πΈ
Okay so bestie, here's the tea: this lil guy is what you reach for when you want to compare two items after they get stringified β like, the string versions get matched up, no cap. π
You can also use it to check that two strings are not equal, which is lowkey iconic for those "these should definitely differ" moments. π¦
β οΈ Heads up though β this will fail if the received value is undefined. It must be defined. Not me letting an undef sneak in and ruining the whole vibe π define your values, periodt.
π₯ SOURCE π₯
The source code repo for Test2-Suite is literally right here, go be nosy:
https://github.com/Test-More/test-more/
π MAINTAINERS π
Chad Granum <exodist@cpan.org> β main character energy fr fr π
β AUTHORS β
Chad Granum <exodist@cpan.org> β yes bestie, same legend, he's carrying this whole thing π
π COPYRIGHT π
Copyright Chad Granum <exodist@cpan.org>. π«Ά
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. Slay.
See http://dev.perl.org/licenses/ for the full legal lore iykyk.
β¨ that's the whole page, you ate that β¨ β anyway, this masterpiece is from perl v5.42.0, dated 2025-07-28, and the page itself is Test2::...:String(3) (yes the header truncates it, no we don't know why, it's giving mysterious π). mwah, go write some tests π
πΈ
π¦ where this page comes from
- opensuse-leap 16.0: perl-Test-Simple 1.302214-bp160.1.2 Β· Artistic-1.0 OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms