Skip to content
This repository has been archived by the owner on Oct 15, 2022. It is now read-only.

Commit

Permalink
Update JohnCena.t
Browse files Browse the repository at this point in the history
Test file updated to match structured answer in .pm file. Thanks for bringing this to my attention, moollaza!
  • Loading branch information
joshuarli committed Mar 22, 2016
1 parent c51a6c1 commit 4d75f0b
Showing 1 changed file with 14 additions and 5 deletions.
19 changes: 14 additions & 5 deletions t/JohnCena.t
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,26 @@ zci is_cached => 1;

ddg_goodie_test(
['DDG::Goodie::JohnCena'],

'who is champ' => test_zci(
'JOHN CENA',
structured_answer => {
input => [],
operation => 'YOUR TIME IS UP, MY TIME IS NOW',
result => 'JOHN CENA',
id => 'john_cena',
name => 'Answer',
data => {
title => 'JOHN CENA',
subtitle => 'YOUR TIME IS UP, MY TIME IS NOW'
},
meta => {
sourceName => 'Wikipedia',
sourceUrl => 'https://en.wikipedia.org/wiki/John_Cena'
},
templates => {
group => 'text'
}
}
),
'who champ' => undef,
'wrestler meme' => undef,
'famous wrestler' => undef,
);

done_testing;

0 comments on commit 4d75f0b

Please sign in to comment.