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

Commit

Permalink
Added 'allcaps' and 'all caps' as triggers. Updated tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
melon3r committed Jun 16, 2014
1 parent a3f71d8 commit f2b4c95
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lib/DDG/Goodie/Uppercase.pm
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package DDG::Goodie::Uppercase;

use DDG::Goodie;

triggers startend => 'uppercase', 'upper case';
triggers startend => 'uppercase', 'upper case', 'allcaps', 'all caps';

zci is_cached => 1;
zci answer_type => "uppercase";
Expand Down
3 changes: 3 additions & 0 deletions t/Uppercase.t
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ ddg_goodie_test(
)],
'upper case this' => test_zci('THIS'),
'uppercase that' => test_zci('THAT'),
'allcaps this string' => test_zci('THIS STRING'),
'that string all caps' => test_zci('THAT STRING'),
'is this uppercase, sir?' => undef,
);

done_testing;

0 comments on commit f2b4c95

Please sign in to comment.