File: m4_get_movie_by_title_single_match.t

package info (click to toggle)
libimdb-film-perl 0.53-1
  • links: PTS, VCS
  • area: main
  • in suites: buster, jessie, jessie-kfreebsd, stretch
  • size: 580 kB
  • ctags: 181
  • sloc: perl: 1,348; makefile: 2
file content (14 lines) | stat: -rw-r--r-- 274 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use strict;

use Test::More tests => 2;
use IMDB::Film;


my $crit = 'Con Air';
my %pars = (cache => 0, debug => 0, crit => $crit, exact => 1);

my $obj = new IMDB::Film(%pars);

is($obj->code, '0118880', 'search code');

is(scalar(@{$obj->matched}), 5, 'Matched results');