correct Dessert.t

master
Mailkov 2015-12-28 17:02:24 +00:00
parent a94ede5842
commit b1300ae301
1 changed files with 81 additions and 18 deletions

View File

@ -13,40 +13,103 @@ ddg_goodie_test(
'DDG::Goodie::Dessert'
],
'desserts beginning with a' => test_zci(
qr/(.*?) is a dessert that begins with 'a'\.$/,
html => qr/(.*?) is a dessert that begins with 'a'\.$/
qr/(.*?) is a dessert that begins with 'a'\.$/,
structured_answer => {
id => 'dessert',
name => 'Answer',
data => '-ANY-',
templates => {
group => 'info',
}
}
),
'desserts beginning with A' => test_zci(
qr/(.*?) is a dessert that begins with 'A'\.$/,
html => qr/(.*?) is a dessert that begins with 'A'\.$/
qr/(.*?) is a dessert that begins with 'A'\.$/,
structured_answer => {
id => 'dessert',
name => 'Answer',
data => '-ANY-',
templates => {
group => 'info',
}
}
),
'dessert start with a' => test_zci(
qr/(.*?) is a dessert that begins with 'a'\.$/,
html => qr/(.*?) is a dessert that begins with 'a'\.$/
qr/(.*?) is a dessert that begins with 'a'\.$/,
structured_answer => {
id => 'dessert',
name => 'Answer',
data => '-ANY-',
templates => {
group => 'info',
}
}
),
'desserts starting with a' => test_zci(
qr/(.*?) is a dessert that begins with 'a'\.$/,
html => qr/(.*?) is a dessert that begins with 'a'\.$/
qr/(.*?) is a dessert that begins with 'a'\.$/,
structured_answer => {
id => 'dessert',
name => 'Answer',
data => '-ANY-',
templates => {
group => 'info',
}
}
),
'dessert starts with a' => test_zci(
qr/(.*?) is a dessert that begins with 'a'\.$/,
html => qr/(.*?) is a dessert that begins with 'a'\.$/
qr/(.*?) is a dessert that begins with 'a'\.$/,
structured_answer => {
id => 'dessert',
name => 'Answer',
data => '-ANY-',
templates => {
group => 'info',
}
}
),
'desserts beginning with z' => test_zci(
qr/(.*?) is a dessert that begins with 'z'\.$/,
html => qr/(.*?) is a dessert that begins with 'z'\.$/
qr/(.*?) is a dessert that begins with 'z'\.$/,
structured_answer => {
id => 'dessert',
name => 'Answer',
data => '-ANY-',
templates => {
group => 'info',
}
}
),
'a dessert that begins with a' => test_zci(
qr/(.*?) is a dessert that begins with 'a'\.$/,
html => qr/(.*?) is a dessert that begins with 'a'\.$/
qr/(.*?) is a dessert that begins with 'a'\.$/,
structured_answer => {
id => 'dessert',
name => 'Answer',
data => '-ANY-',
templates => {
group => 'info',
}
}
),
'a dessert that starts with the letter a' => test_zci(
qr/(.*?) is a dessert that begins with 'a'\.$/,
html => qr/(.*?) is a dessert that begins with 'a'\.$/
qr/(.*?) is a dessert that begins with 'a'\.$/,
structured_answer => {
id => 'dessert',
name => 'Answer',
data => '-ANY-',
templates => {
group => 'info',
}
}
),
'dessert that begins with the letter z' => test_zci(
qr/(.*?) is a dessert that begins with 'z'\.$/,
html => qr/(.*?) is a dessert that begins with 'z'\.$/
qr/(.*?) is a dessert that begins with 'z'\.$/,
structured_answer => {
id => 'dessert',
name => 'Answer',
data => '-ANY-',
templates => {
group => 'info',
}
}
),
);