File: test.t

package info (click to toggle)
libpithub-perl 0.01043-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,148 kB
  • sloc: perl: 9,098; makefile: 7
file content (20 lines) | stat: -rwxr-xr-x 445 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!perl

use strict;
use warnings;

use lib 't/lib';
use Pithub::Test qw( uri_is );

subtest 'Test::Most imported' => sub {
    pass('Loaded test functions');
    cmp_deeply {}, {}, 'Test::Deep imported';
};

subtest 'uri_is' => sub {
    uri_is 'http://example.com', 'http://example.com', 'same URI';
    uri_is 'http://example.com?foo=bar&up=down',
        'http://example.com?up=down&foo=bar', 'same query, different order';
};

done_testing;