Test::Proto::Series - represent a series in array validation
pArray->contains_only(pSeries('a', 'b', 'c')); # will validate ['a', 'b', 'c'] as true
Used in array validation to represent a sequence which must be present in its entirety. Only really useful when used in combination with Test::Proto::Repeatable and Test::Proto::Alternation, which can be nested inside a series, or can contain a series.
Each argument is another element in the series.
die unless exists $alternation->contents->[0];
A chainable getter/setter method for the contents of the series.
To install Test::Proto, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Test::Proto
CPAN shell
perl -MCPAN -e shell install Test::Proto
For more information on module installation, please visit the detailed CPAN module installation guide.