Test2::...edSubset(3)
π NAME π
okay so bestie, welcome to the Test2::Compare::OrderedSubset(3) page from the User Contributed Perl Documentation. Test2::Compare::OrderedSubset is the internal representation of an ordered subset β thatβs the whole name-and-vibe situation, and it ate. β¨
πΈ DESCRIPTION πΈ
So this module is used to ensure an array has all the expected items in the expected order. It ignores any unexpected items mixed into the array. It only cares that all the expected values are present, and in order β everything else is noise, bestie. π
The way that it just lets the extra stuff exist is lowkey iconic, ngl. π¦
β¨ METHODS β¨
$ref = $arr->inref()β if the instance was constructed from an actual array, this will have the reference to that array. π«Ά$arrayref = $arr->items()and$arr->set_items($arrayref)β all the expected items, in order. Like the whole checklist, but make it sequential. π$name = $arr->name()β always returns the string"<ORDERED SUBSET>". No cap, thatβs the name. π$bool = $arr->verify(got => $got, exists => $bool)β check if$gotis an array reference or not. Thatβs it, fr fr. π$arr->add_item($item)β add an item to the list of values to check. One more thing to verify, bestie. β¨@deltas = $arr->deltas(got => $got, convert => \&convert, seen => \%seen)β find the differences between the expected array values and those in the$gotarrayref. Deltas are literally the receipts. π
π₯ SOURCE π₯
The source code repository for Test2-Suite can be found at https://github.com/Test-More/test-more/. Go click around, bestie. π¦
π MAINTAINERS π
Chad Granum <exodist@cpan.org> β the maintainer, periodt. π«Ά
π AUTHORS π
Chad Granum <exodist@cpan.org>.
π 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.
See http://dev.perl.org/licenses/
π okay thatβs the whole page, bestie β itβs from perl v5.42.0, dated 2025-07-28, and the footer label is Test2::...edSubset(3). slay and goodbye. π
π¦ 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