File: aliases.t

package info (click to toggle)
libwww-mechanize-perl 2.03-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 988 kB
  • sloc: perl: 4,088; makefile: 6
file content (16 lines) | stat: -rw-r--r-- 333 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!perl -T

use warnings;
use strict;
use Test::More tests => 8;

BEGIN {
    use_ok( 'WWW::Mechanize' );
}

my @aliases = WWW::Mechanize::known_agent_aliases();
is( scalar @aliases, 6, 'All aliases accounted for' );

for my $alias ( @aliases ) {
    like( $alias, qr/^(Mac|Windows|Linux) /, 'We only know Mac, Windows or Linux' );
}