Make module compatible with perl 5.8.9
[www-offliberty.git] / t / 50-network.t
CommitLineData
a0765f3d 1#!/usr/bin/perl
de48830a
MG
2use strict;
3use warnings;
4
09f254ed 5use Test::RequiresInternet 'offliberty.com' => 80;
045faed6 6use Test::More tests => 2;
de48830a
MG
7use WWW::Offliberty qw/off/;
8
045faed6
MG
9my @results;
10@results = off "http://youtube.com/watch?v=Tj75Arhq5ho";
11is @results, 1, 'youtube';
de48830a 12
045faed6
MG
13@results = off "http://youtube.com/watch?v=Tj75Arhq5ho", video_file => 1;
14is @results, 2, 'youtube, video_file => 1';
This page took 0.010395 seconds and 4 git commands to generate.