Data::Semantic::URI::TestData::fax - Test data class for the fax URI semantic data class


Data-Semantic-URI documentation Contained in the Data-Semantic-URI distribution.

Index


Code Index:

NAME

Top

Data::Semantic::URI::TestData::fax - Test data class for the fax URI semantic data class

VERSION

Top

version 1.100850

DESCRIPTION

Top

Defines test data for Data::Semantic::URI::fax_TEST, but it is also used in the corresponding value and domain classes, i.e., Class::Value::URI::fax_TEST and Data::Domain::URI::fax_TEST.

INSTALLATION

Top

See perlmodinstall for information and options on installing Perl modules.

BUGS AND LIMITATIONS

Top

No bugs have been reported.

Please report any bugs or feature requests through the web interface at http://rt.cpan.org/Public/Dist/Display.html?Name=Data-Semantic-URI.

AVAILABILITY

Top

The latest version of this module is available from the Comprehensive Perl Archive Network (CPAN). Visit http://www.perl.com/CPAN/ to find a CPAN site near you, or see http://search.cpan.org/dist/Data-Semantic-URI/.

The development version lives at http://github.com/hanekomu/Data-Semantic-URI/. Instead of sending patches, please fork this project using the standard git and github infrastructure.

AUTHOR

Top

  Marcel Gruenauer <marcel@cpan.org>

COPYRIGHT AND LICENSE

Top


Data-Semantic-URI documentation Contained in the Data-Semantic-URI distribution.

use 5.008;
use strict;
use warnings;

package Data::Semantic::URI::TestData::fax;
our $VERSION = '1.100850';
# ABSTRACT: Test data class for the fax URI semantic data class
use Test::More;
use constant TESTDATA => (
    {   args  => {},
        valid => [
            qw(
              fax:+1-212-555-1234;tsp=terrifictelecom.com
              fax:+1-212-555-1234;tsp=terrifictelecom.com;phone-context=X-COMPANY-NET
              fax:+1-212-555-1234;tsub=0123456789-.();tsp=terrifictelecom.com;phone-context=X-COMPANY-NET
              fax:+123-456-789;isub=123(456)
              fax:+12345
              fax:+1234567890;phone-context=+1234;vnd.company.option=%22foo%22
              fax:+1234567890;phone-context=+1234;vnd.company.option=foo
              fax:+123456;postd=***
              fax:+12345;tsub=0123456789-.()
              fax:+1234;option=%22!%22
              fax:+1234;option=%22%5C!%22
              fax:+1234;option=%22%5C%22%22
              fax:+1234;option=%22bar%22
              fax:+358-555-1234567
              fax:+358-555-1234567;postd=pp22
              fax:+358-555-123456;tsub=0123456789-.()7
              fax:+456-7890;phone-context=213;phone-context=213
              fax:0w003585551234567;phone-context=+3585551234
              fax:456-7890;phone-context=213
              fax:456-7890;phone-context=213;phone-context=213
              fax:456-7890;phone-context=X-COMPANY-NET
              fax:456-7890;tsub=0123456789-.();phone-context=213
              fax:456-7890;tsub=0123456789-.();phone-context=X-COMPANY-NET
              )
        ],
        invalid => [
            qw(
              fax:+1-800-RUN-PERL
              fax:+1234;option=%22%22%22
              fax:+1234;option=%22%5C%22
              fax:456-7890
              fax:456-7890;phone-context=213;tsub=0123456789-.()
              fax:456-7890;tsub=213;
              fax:456-7890;tsub=213;tsub=456
              )
        ],
    },
    {   args  => { nofuture => 1 },
        valid => [
            qw(
              fax:+1-212-555-1234;tsp=terrifictelecom.com
              fax:+1-212-555-1234;tsp=terrifictelecom.com;phone-context=X-COMPANY-NET
              fax:+1-212-555-1234;tsub=0123456789-.();tsp=terrifictelecom.com;phone-context=X-COMPANY-NET
              fax:+123-456-789;isub=123(456)
              fax:+12345
              fax:+123456;postd=***
              fax:+358-555-1234567
              fax:+358-555-1234567;postd=pp22
              fax:+456-7890;phone-context=213;phone-context=213
              fax:0w003585551234567;phone-context=+3585551234
              fax:456-7890;phone-context=213
              fax:456-7890;phone-context=213;phone-context=213
              fax:456-7890;phone-context=X-COMPANY-NET
              fax:456-7890;tsub=0123456789-.();phone-context=213
              fax:456-7890;tsub=0123456789-.();phone-context=X-COMPANY-NET
              )
        ],
        invalid => [
            qw(
              fax:+1-800-RUN-PERL
              fax:+123-456-789;isub=123(456);isub=123(456)
              fax:+123-456-789;isub=A23(456)
              fax:+1234567890;phone-context=+1234;vnd.company.option=%22foo%22
              fax:+1234567890;phone-context=+1234;vnd.company.option=foo
              fax:+12345;tsub=foo
              fax:+1234;option=%22!%22
              fax:+1234;option=%22%22%22
              fax:+1234;option=%22%5C!%22
              fax:+1234;option=%22%5C%22%22
              fax:+1234;option=%22%5C%22
              fax:+1234;option=%22bar%22
              fax:+358-555-1234567;phone-context=+1234;postd=pp22
              fax:1234567890;phone-context=+1234;vnd.company.option=%22foo%22
              fax:1234567890;phone-context=+1234;vnd.company.option=foo
              fax:1234;option=%22!%22
              fax:1234;option=%22%5C!%22
              fax:1234;option=%22%5C%22%22
              fax:1234;option=%22bar%22
              fax:456-7890
              fax:456-7890;tsub=213;
              fax:456-7890;tsub=213;tsub=456
              )
        ],
    },
);
1;


__END__