Test::Proto::String - Test Prototype for strings.
Test::Proto::String->new->ok('123'); # ok Test::Proto::String->new->ok(undef); # not ok Test::Proto::String->new->ok([1,2,3]); # not ok
This is a test prototype which requires that the value it is given is defined and is a scalar. It provides methods for interacting with strings.
Currently, all methods are inherited from Test::Proto::Base.
For author, version, bug reports, support, etc, please see Test::Proto.
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.