NAME

Test::IsAny - check if a value is any of the given values

SYNOPSIS

use strict;
use warnings;

use Test::More tests => 1;
use Test::IsAny qw(is_any);

my $result = 42; # this is the result of the Application Under Test
my @expected = (10, 71, 23, 42);
is_any($result, \@expected, 'The right anwser');

DESCRIPTION

The primary goal of this function and module was to teach how you can create your own test function. See the Perl Testing book (and course) on the Perl Maven site.

AUTHOR

Gabor Szabo

COPYRIGHT

Copyright 2026 Gabor Szabo, All Rights Reserved.

You may use, modify, and distribute this package under the same terms as Perl itself.