t/m4_get_movie_by_title_single_match.t
raw| 1 | use strict; |
| 2 | |
| 3 | use Test::More tests => 2; |
| 4 | use IMDB::Film; |
| 5 | |
| 6 | |
| 7 | my $crit = 'Con Air'; |
| 8 | my %pars = (cache => 0, debug => 0, crit => $crit, exact => 1); |
| 9 | |
| 10 | my $obj = new IMDB::Film(%pars); |
| 11 | |
| 12 | is($obj->code, '0118880', 'search code'); |
| 13 | |
| 14 | is(scalar(@{$obj->matched}), 5, 'Matched results'); |