Name : perl-Test-Deep-UnorderedPairs
| |
Version : 0.006
| Vendor : obs://build_opensuse_org/devel:languages:perl
|
Release : lp154.1.1
| Date : 2023-01-27 17:33:57
|
Group : Development/Libraries/Perl
| Source RPM : perl-Test-Deep-UnorderedPairs-0.006-lp154.1.1.src.rpm
|
Size : 0.03 MB
| |
Packager : https://www_suse_com/
| |
Summary : Test::Deep plugin for comparing an unordered list of tuples
|
Description :
This module provides the sub \'unordered_pairs\' (and \'tuples\', \'samehash\', as synonyms) to indicate the data being tested is a list of pairs that should be tested where the order of the pairs is insignificant.
This is useful when testing a function that returns a list of hash elements as an arrayref, not a hashref. One such application might be testing PSGI headers, which are passed around as an arrayref:
my $response = [ \'200\', [ \'Content-Length\' => \'12\', \'Content-Type\' => \'text/plain\', ], [ \'hello world!\' ], ];
cmp_deeply( $response, [ \'200\', unordered_pairs( \'Content-Type\' => \'text/plain\', \'Content-Length\' => \'12\', ], [ \'hello world!\' ], ], \'check headers as an arrayref of unordered pairs\', );
|
RPM found in directory: /packages/linux-pbone/ftp5.gwdg.de/pub/opensuse/repositories/devel:/languages:/perl:/CPAN-T/15.4/noarch |