2014-01-31 16:26:50 -08:00
|
|
|
#!/usr/bin/env perl
|
|
|
|
|
|
|
|
use strict;
|
|
|
|
use warnings;
|
|
|
|
|
|
|
|
use Test::More;
|
|
|
|
use DDG::Test::Goodie;
|
|
|
|
|
|
|
|
zci answer_type => 'makemeasandwich';
|
|
|
|
|
|
|
|
ddg_goodie_test(
|
|
|
|
[
|
|
|
|
'DDG::Goodie::MakeMeASandwich'
|
|
|
|
],
|
|
|
|
'make me a sandwich' =>
|
|
|
|
test_zci(
|
|
|
|
'What? Make it yourself.',
|
2014-02-12 14:36:33 -08:00
|
|
|
html => 'What? Make it yourself. <br><a href="http://xkcd.com/149/">More at xkcd</a>'
|
2014-01-31 16:26:50 -08:00
|
|
|
),
|
|
|
|
'sudo make me a sandwich' =>
|
|
|
|
test_zci(
|
|
|
|
'Okay.',
|
2014-02-12 14:36:33 -08:00
|
|
|
html => 'Okay. <br><a href="http://xkcd.com/149/">More at xkcd</a>'
|
2014-02-02 08:52:42 -08:00
|
|
|
),
|
|
|
|
'blahblah make me a sandwich' => undef,
|
|
|
|
'0 make me a sandwich' => undef,
|
2014-01-31 16:26:50 -08:00
|
|
|
);
|
|
|
|
|
|
|
|
done_testing;
|