File: is_schemed.t

package info (click to toggle)
liburi-find-perl 20160806-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster
  • size: 248 kB
  • ctags: 21
  • sloc: perl: 1,388; makefile: 2
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)";
}