File: is_schemed.t

package info (click to toggle)
liburi-find-perl 20100505-2
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 148 kB
  • ctags: 24
  • sloc: perl: 655; makefile: 38
file content (17 lines) | stat: -rw-r--r-- 279 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/usr/bin/perl -w

use strict;

use Test::More 'no_plan';

use URI::Find;

my @tests = (
    ["http://foo.bar"   => 1],
    ["foo.com"          => 0],
);

for my $test (@tests) {
    my($uri, $want) = @$test;
    is !!URI::Find->is_schemed($uri), !!$want, "is_schemed($uri)";
}