File: fully-qualified.t

package info (click to toggle)
libmoosex-types-uri-perl 0.07-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 256 kB
  • ctags: 1
  • sloc: perl: 308; makefile: 2
file content (15 lines) | stat: -rw-r--r-- 402 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use strict;
use warnings FATAL => 'all';

use Test::More;
use if $ENV{AUTHOR_TESTING}, 'Test::Warnings';

use MooseX::Types::URI 'Uri';

ok(is_Uri(URI->new("http://www.google.com")), 'is_Uri');

ok(Uri->isa('Moose::Meta::TypeConstraint'), 'type is available as an import');

ok(MooseX::Types::URI::Uri->isa('Moose::Meta::TypeConstraint'), 'type is available as a fully-qualified name');

done_testing;