diff options
Diffstat (limited to 'Master/tlpkg/tlperl0/lib/Test/Deep/ArrayEach.pm')
-rwxr-xr-x | Master/tlpkg/tlperl0/lib/Test/Deep/ArrayEach.pm | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/Master/tlpkg/tlperl0/lib/Test/Deep/ArrayEach.pm b/Master/tlpkg/tlperl0/lib/Test/Deep/ArrayEach.pm new file mode 100755 index 00000000000..f6d9417d5f5 --- /dev/null +++ b/Master/tlpkg/tlperl0/lib/Test/Deep/ArrayEach.pm @@ -0,0 +1,27 @@ +use strict; +use warnings; + +package Test::Deep::ArrayEach; + +use Test::Deep::Cmp; + +sub init +{ + my $self = shift; + + my $val = shift; + + $self->{val} = $val; +} + +sub descend +{ + my $self = shift; + my $got = shift; + + my $exp = [ ($self->{val}) x @$got ]; + + return Test::Deep::descend($got, $exp); +} + +1; |