Daniel Perrett > Test-Proto-0.011 > Test::Proto::String

Download:
Test-Proto-0.011.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Source  

NAME ^

Test::Proto::String - Test Prototype for strings.

SYNOPSIS ^

        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.

METHODS ^

Currently, all methods are inherited from Test::Proto::Base.

OTHER INFORMATION ^

For author, version, bug reports, support, etc, please see Test::Proto.

syntax highlighting: