zeroclickinfo-goodies/t/VIN.t

77 lines
2.5 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 Test::Deep;
2013-03-05 14:55:43 -08:00
use DDG::Test::Goodie;
zci answer_type => 'vin';
zci is_cached => 1;
ddg_goodie_test(
2016-01-04 06:34:35 -08:00
[qw( DDG::Goodie::VIN )],
2013-03-05 14:55:43 -08:00
'1g8gg35m1g7123101' => test_zci(
2016-02-01 21:15:13 -08:00
"Decode VIN (1G8GG35M1G7123101) at Decode This: http://www.decodethis.com/VIN-Decoded/vin/1G8GG35M1G7123101",
2016-01-04 06:34:35 -08:00
structured_answer => {
data => {
2016-02-01 21:15:13 -08:00
title => "Vehicle Identification Number: 1G8GG35M1G7123101",
href => "http://www.decodethis.com/VIN-Decoded/vin/1G8GG35M1G7123101"
2016-01-04 06:34:35 -08:00
},
templates => {
group => 'text',
2016-02-01 21:15:13 -08:00
options => {
subtitle_content => "DDH.vin.subtitle"
}
2016-01-04 06:34:35 -08:00
}
}
),
2013-03-05 14:55:43 -08:00
'vin 1g8gg35m1g7123101' => test_zci(
2016-02-01 21:15:13 -08:00
"Decode VIN (1G8GG35M1G7123101) at Decode This: http://www.decodethis.com/VIN-Decoded/vin/1G8GG35M1G7123101",
2016-01-04 06:34:35 -08:00
structured_answer => {
data => {
2016-02-01 21:15:13 -08:00
title => "Vehicle Identification Number: 1G8GG35M1G7123101",
href => "http://www.decodethis.com/VIN-Decoded/vin/1G8GG35M1G7123101"
2016-01-04 06:34:35 -08:00
},
templates => {
group => 'text',
2016-02-01 21:15:13 -08:00
options => {
subtitle_content => "DDH.vin.subtitle"
}
2016-01-04 06:34:35 -08:00
}
}
),
2013-03-05 14:55:43 -08:00
'1g8gg35m1g7123101 vehicle identification number' => test_zci(
2016-02-01 21:15:13 -08:00
"Decode VIN (1G8GG35M1G7123101) at Decode This: http://www.decodethis.com/VIN-Decoded/vin/1G8GG35M1G7123101",
2016-01-04 06:34:35 -08:00
structured_answer => {
data => {
2016-02-01 21:15:13 -08:00
title => "Vehicle Identification Number: 1G8GG35M1G7123101",
href => "http://www.decodethis.com/VIN-Decoded/vin/1G8GG35M1G7123101"
2016-01-04 06:34:35 -08:00
},
templates => {
group => 'text',
2016-02-01 21:15:13 -08:00
options => {
subtitle_content => "DDH.vin.subtitle"
}
2016-01-04 06:34:35 -08:00
}
}
),
2013-03-05 14:55:43 -08:00
'1g8gg35m1g7123101 tracking' => test_zci(
2016-02-01 21:15:13 -08:00
"Decode VIN (1G8GG35M1G7123101) at Decode This: http://www.decodethis.com/VIN-Decoded/vin/1G8GG35M1G7123101",
2016-01-04 06:34:35 -08:00
structured_answer => {
data => {
2016-02-01 21:15:13 -08:00
title => "Vehicle Identification Number: 1G8GG35M1G7123101",
href => "http://www.decodethis.com/VIN-Decoded/vin/1G8GG35M1G7123101"
2016-01-04 06:34:35 -08:00
},
templates => {
group => 'text',
2016-02-01 21:15:13 -08:00
options => {
subtitle_content => "DDH.vin.subtitle"
}
2016-01-04 06:34:35 -08:00
}
}
),
2013-03-05 14:55:43 -08:00
);
2016-05-16 06:18:04 -07:00
done_testing;