Merge pull request #470 from duckduckgo/jag/flip

FlipText: Add "text" to the trigger word.
master
Caine Tighe 2014-06-03 14:59:44 -04:00
commit ca39e03b53
2 changed files with 7 additions and 7 deletions

View File

@ -2,13 +2,13 @@ package DDG::Goodie::FlipText;
use DDG::Goodie;
triggers startend => "flip", "mirror", "spin", "rotate";
triggers startend => "flip text", "mirror text", "spin text", "rotate text";
zci is_cached => 1;
zci answer_type => "flip_text";
primary_example_queries 'flip my sentence';
secondary_example_queries 'mirror text';
primary_example_queries 'flip text sentence';
secondary_example_queries 'mirror text hello';
description 'flip and mirror text';
name 'FlipText';
code_url 'https://github.com/duckduckgo/zeroclickinfo-goodies/blob/master/lib/DDG/Goodie/FlipText.pm';

View File

@ -13,10 +13,10 @@ ddg_goodie_test(
[qw(
DDG::Goodie::FlipText
)],
'flip test' => test_zci("\x{0287}\x{0073}\x{01DD}\x{0287}"),
'mirror test' => test_zci("\x{0287}\x{0073}\x{01DD}\x{0287}"),
'flip my sentence' => test_zci('ǝɔuǝʇuǝs ʎɯ'),
'mirror text' => test_zci('ʇxǝʇ'),
'flip text test' => test_zci("\x{0287}\x{0073}\x{01DD}\x{0287}"),
'mirror text test' => test_zci("\x{0287}\x{0073}\x{01DD}\x{0287}"),
'flip text my sentence' => test_zci('ǝɔuǝʇuǝs ʎɯ'),
'mirror text text' => test_zci('ʇxǝʇ'),
);
done_testing;