zeroclickinfo-goodies/t/VIN.t

37 lines
1.3 KiB
Perl
Raw Normal View History

2013-03-05 14:55:43 -08:00
#!/usr/bin/env perl
use strict;
use warnings;
use Test::More;
use DDG::Test::Goodie;
zci answer_type => 'vin';
zci is_cached => 1;
ddg_goodie_test(
[qw( DDG::Goodie::VIN )],
'1g8gg35m1g7123101' => test_zci(
"1G8GG35M1G7123101",
2013-03-18 11:59:14 -07:00
heading => 'Vehicle Identification Number',
html => "Check the automobile's VIN at <a href='http://www.decodethis.com/VIN-Decoded/vin/1G8GG35M1G7123101'>Decode This</a>."
2013-03-05 14:55:43 -08:00
),
'vin 1g8gg35m1g7123101' => test_zci(
"1G8GG35M1G7123101",
2013-03-18 11:59:14 -07:00
heading => 'Vehicle Identification Number',
html => "Check the automobile's VIN at <a href='http://www.decodethis.com/VIN-Decoded/vin/1G8GG35M1G7123101'>Decode This</a>."
2013-03-05 14:55:43 -08:00
),
'1g8gg35m1g7123101 vehicle identification number' => test_zci(
"1G8GG35M1G7123101",
2013-03-18 11:59:14 -07:00
heading => 'Vehicle Identification Number',
html => "Check the automobile's VIN at <a href='http://www.decodethis.com/VIN-Decoded/vin/1G8GG35M1G7123101'>Decode This</a>."
2013-03-05 14:55:43 -08:00
),
'1g8gg35m1g7123101 tracking' => test_zci(
"1G8GG35M1G7123101",
2013-03-18 11:59:14 -07:00
heading => 'Vehicle Identification Number',
html => "Check the automobile's VIN at <a href='http://www.decodethis.com/VIN-Decoded/vin/1G8GG35M1G7123101'>Decode This</a>."
2013-03-05 14:55:43 -08:00
),
);
done_testing;