zeroclickinfo-goodies/t/Dessert.t

100 lines
2.5 KiB
Perl
Raw Normal View History

2012-08-21 07:52:18 -07:00
#!/usr/bin/env perl
use strict;
use warnings;
use Test::More;
use Test::Deep;
2012-08-21 07:52:18 -07:00
use DDG::Test::Goodie;
zci answer_type => 'dessert';
zci is_cached => 0;
ddg_goodie_test(
2015-12-28 08:57:03 -08:00
[
'DDG::Goodie::Dessert'
],
'desserts beginning with a' => test_zci(
re(qr/(.*?) is a dessert that begins with 'a'\.$/),
2015-12-28 09:02:24 -08:00
structured_answer => {
data => ignore(),
2015-12-28 09:02:24 -08:00
templates => {
group => 'info',
}
}
),
'desserts beginning with A' => test_zci(
re(qr/(.*?) is a dessert that begins with 'A'\.$/),
2015-12-28 09:02:24 -08:00
structured_answer => {
data => ignore(),
2015-12-28 09:02:24 -08:00
templates => {
group => 'info',
}
}
),
'dessert start with a' => test_zci(
re(qr/(.*?) is a dessert that begins with 'a'\.$/),
2015-12-28 09:02:24 -08:00
structured_answer => {
data => ignore(),
2015-12-28 09:02:24 -08:00
templates => {
group => 'info',
}
}
),
'desserts starting with a' => test_zci(
re(qr/(.*?) is a dessert that begins with 'a'\.$/),
2015-12-28 09:02:24 -08:00
structured_answer => {
data => ignore(),
2015-12-28 09:02:24 -08:00
templates => {
group => 'info',
}
}
),
'dessert starts with a' => test_zci(
re(qr/(.*?) is a dessert that begins with 'a'\.$/),
2015-12-28 09:02:24 -08:00
structured_answer => {
data => ignore(),
2015-12-28 09:02:24 -08:00
templates => {
group => 'info',
}
}
),
'desserts beginning with z' => test_zci(
re(qr/(.*?) is a dessert that begins with 'z'\.$/),
2015-12-28 09:02:24 -08:00
structured_answer => {
data => ignore(),
2015-12-28 09:02:24 -08:00
templates => {
group => 'info',
}
}
),
2013-12-11 17:17:47 -08:00
'a dessert that begins with a' => test_zci(
re(qr/(.*?) is a dessert that begins with 'a'\.$/),
2015-12-28 09:02:24 -08:00
structured_answer => {
data => ignore(),
2015-12-28 09:02:24 -08:00
templates => {
group => 'info',
}
}
),
'a dessert that starts with the letter a' => test_zci(
re(qr/(.*?) is a dessert that begins with 'a'\.$/),
2015-12-28 09:02:24 -08:00
structured_answer => {
data => ignore(),
2015-12-28 09:02:24 -08:00
templates => {
group => 'info',
}
}
),
'dessert that begins with the letter z' => test_zci(
re(qr/(.*?) is a dessert that begins with 'z'\.$/),
2015-12-28 09:02:24 -08:00
structured_answer => {
data => ignore(),
2015-12-28 09:02:24 -08:00
templates => {
group => 'info',
}
}
),
2012-08-21 07:52:18 -07:00
);
2016-05-16 06:18:04 -07:00
done_testing;