2014-03-09 10:05:19 -07:00
|
|
|
#!/usr/bin/env perl
|
|
|
|
|
|
|
|
use strict;
|
|
|
|
use warnings;
|
|
|
|
|
|
|
|
use Test::More;
|
|
|
|
use DDG::Test::Goodie;
|
|
|
|
|
|
|
|
zci answer_type => 'figlet';
|
|
|
|
zci is_cached => 1;
|
|
|
|
|
|
|
|
ddg_goodie_test(
|
|
|
|
[
|
|
|
|
'DDG::Goodie::FIGlet'
|
|
|
|
],
|
|
|
|
'figlet DuckDuckGo' =>
|
|
|
|
test_zci(
|
2014-04-06 07:11:11 -07:00
|
|
|
' ____ _ ____ _ ____
|
|
|
|
| _ \ _ _ ___| | _| _ \ _ _ ___| | __/ ___| ___
|
|
|
|
| | | | | | |/ __| |/ | | | | | | |/ __| |/ | | _ / _ \
|
|
|
|
| |_| | |_| | (__| <| |_| | |_| | (__| <| |_| | (_) |
|
|
|
|
|____/ \__,_|\___|_|\_|____/ \__,_|\___|_|\_\\\____|\___/
|
|
|
|
|
2014-03-09 10:05:19 -07:00
|
|
|
',
|
2014-08-26 12:32:09 -07:00
|
|
|
html => '<div id=\'figlet-wrapper\'><span>Font: </span><span id=\'figlet-font\'>standard</span><pre contenteditable=\'true\'> ____ _ ____ _ ____
|
2014-04-06 07:11:11 -07:00
|
|
|
| _ \ _ _ ___| | _| _ \ _ _ ___| | __/ ___| ___
|
|
|
|
| | | | | | |/ __| |/ | | | | | | |/ __| |/ | | _ / _ \
|
|
|
|
| |_| | |_| | (__| <| |_| | |_| | (__| <| |_| | (_) |
|
|
|
|
|____/ \__,_|\___|_|\_|____/ \__,_|\___|_|\_\\\____|\___/
|
|
|
|
|
2014-06-05 02:34:43 -07:00
|
|
|
</pre></div>',
|
2014-03-09 10:05:19 -07:00
|
|
|
),
|
|
|
|
|
2014-03-20 11:51:22 -07:00
|
|
|
'bigtext mini DDG' =>
|
2014-03-09 10:05:19 -07:00
|
|
|
test_zci(
|
2014-03-20 08:48:33 -07:00
|
|
|
' _ _ __
|
|
|
|
| \ | \ /__
|
|
|
|
|_/ |_/ \_|
|
|
|
|
|
2014-03-09 10:05:19 -07:00
|
|
|
',
|
2014-08-26 12:32:09 -07:00
|
|
|
html => '<div id=\'figlet-wrapper\'><span>Font: </span><span id=\'figlet-font\'>mini</span><pre contenteditable=\'true\'> _ _ __
|
2014-03-20 08:48:33 -07:00
|
|
|
| \ | \ /__
|
|
|
|
|_/ |_/ \_|
|
|
|
|
|
2014-06-05 02:34:43 -07:00
|
|
|
</pre></div>',
|
2014-03-09 10:05:19 -07:00
|
|
|
),
|
|
|
|
|
2014-03-20 08:48:33 -07:00
|
|
|
'figlet-mini DDG' =>
|
2014-03-09 10:05:19 -07:00
|
|
|
test_zci(
|
2014-03-20 08:48:33 -07:00
|
|
|
' _ _ __
|
|
|
|
| \ | \ /__
|
|
|
|
|_/ |_/ \_|
|
|
|
|
|
2014-03-09 10:05:19 -07:00
|
|
|
',
|
2014-08-26 12:32:09 -07:00
|
|
|
html => '<div id=\'figlet-wrapper\'><span>Font: </span><span id=\'figlet-font\'>mini</span><pre contenteditable=\'true\'> _ _ __
|
2014-03-20 08:48:33 -07:00
|
|
|
| \ | \ /__
|
|
|
|
|_/ |_/ \_|
|
|
|
|
|
2014-06-05 02:34:43 -07:00
|
|
|
</pre></div>',
|
2014-03-09 10:05:19 -07:00
|
|
|
),
|
|
|
|
|
2014-03-20 08:48:33 -07:00
|
|
|
'figlet-stop' =>
|
2014-03-09 10:05:19 -07:00
|
|
|
test_zci(
|
2014-03-20 08:48:33 -07:00
|
|
|
' _
|
|
|
|
___| |_ ___ _ __
|
|
|
|
/ __| __/ _ \| \'_ \
|
|
|
|
\__ | || (_) | |_) |
|
|
|
|
|___/\__\___/| .__/
|
|
|
|
|_|
|
2014-03-09 10:05:19 -07:00
|
|
|
',
|
2014-08-26 12:32:09 -07:00
|
|
|
html => '<div id=\'figlet-wrapper\'><span>Font: </span><span id=\'figlet-font\'>standard</span><pre contenteditable=\'true\'> _
|
2014-03-20 08:48:33 -07:00
|
|
|
___| |_ ___ _ __
|
|
|
|
/ __| __/ _ \| \'_ \
|
|
|
|
\__ | || (_) | |_) |
|
|
|
|
|___/\__\___/| .__/
|
|
|
|
|_|
|
2014-06-05 02:34:43 -07:00
|
|
|
</pre></div>',
|
2014-03-28 01:41:09 -07:00
|
|
|
),
|
|
|
|
|
|
|
|
'DuckDuckGo bigtext' =>
|
2014-04-06 07:11:11 -07:00
|
|
|
test_zci(' ____ _ ____ _ ____
|
|
|
|
| _ \ _ _ ___| | _| _ \ _ _ ___| | __/ ___| ___
|
|
|
|
| | | | | | |/ __| |/ | | | | | | |/ __| |/ | | _ / _ \
|
|
|
|
| |_| | |_| | (__| <| |_| | |_| | (__| <| |_| | (_) |
|
|
|
|
|____/ \__,_|\___|_|\_|____/ \__,_|\___|_|\_\\\____|\___/
|
|
|
|
|
2014-03-28 01:41:09 -07:00
|
|
|
',
|
2014-08-26 12:32:09 -07:00
|
|
|
html => '<div id=\'figlet-wrapper\'><span>Font: </span><span id=\'figlet-font\'>standard</span><pre contenteditable=\'true\'> ____ _ ____ _ ____
|
2014-04-06 07:11:11 -07:00
|
|
|
| _ \ _ _ ___| | _| _ \ _ _ ___| | __/ ___| ___
|
|
|
|
| | | | | | |/ __| |/ | | | | | | |/ __| |/ | | _ / _ \
|
|
|
|
| |_| | |_| | (__| <| |_| | |_| | (__| <| |_| | (_) |
|
|
|
|
|____/ \__,_|\___|_|\_|____/ \__,_|\___|_|\_\\\____|\___/
|
|
|
|
|
2014-06-05 02:34:43 -07:00
|
|
|
</pre></div>',
|
2014-03-09 10:05:19 -07:00
|
|
|
),
|
2014-03-28 01:41:09 -07:00
|
|
|
|
2014-04-21 04:47:07 -07:00
|
|
|
'DuckDuckGo big text' =>
|
|
|
|
test_zci(' ____ _ ____ _ ____
|
|
|
|
| _ \ _ _ ___| | _| _ \ _ _ ___| | __/ ___| ___
|
|
|
|
| | | | | | |/ __| |/ | | | | | | |/ __| |/ | | _ / _ \
|
|
|
|
| |_| | |_| | (__| <| |_| | |_| | (__| <| |_| | (_) |
|
|
|
|
|____/ \__,_|\___|_|\_|____/ \__,_|\___|_|\_\\\____|\___/
|
|
|
|
|
|
|
|
',
|
2014-08-26 12:32:09 -07:00
|
|
|
html => '<div id=\'figlet-wrapper\'><span>Font: </span><span id=\'figlet-font\'>standard</span><pre contenteditable=\'true\'> ____ _ ____ _ ____
|
2014-04-21 04:47:07 -07:00
|
|
|
| _ \ _ _ ___| | _| _ \ _ _ ___| | __/ ___| ___
|
|
|
|
| | | | | | |/ __| |/ | | | | | | |/ __| |/ | | _ / _ \
|
|
|
|
| |_| | |_| | (__| <| |_| | |_| | (__| <| |_| | (_) |
|
|
|
|
|____/ \__,_|\___|_|\_|____/ \__,_|\___|_|\_\\\____|\___/
|
|
|
|
|
2014-06-05 02:34:43 -07:00
|
|
|
</pre></div>',
|
2014-04-21 04:47:07 -07:00
|
|
|
),
|
|
|
|
'figlet' => undef,
|
|
|
|
'bigtext' => undef,
|
|
|
|
'big text' => undef,
|
2014-03-09 10:05:19 -07:00
|
|
|
);
|
|
|
|
|
|
|
|
done_testing;
|