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

Commit f2b4c95

Browse files
committed
Added 'allcaps' and 'all caps' as triggers. Updated tests.
1 parent a3f71d8 commit f2b4c95

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

lib/DDG/Goodie/Uppercase.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ package DDG::Goodie::Uppercase;
22

33
use DDG::Goodie;
44

5-
triggers startend => 'uppercase', 'upper case';
5+
triggers startend => 'uppercase', 'upper case', 'allcaps', 'all caps';
66

77
zci is_cached => 1;
88
zci answer_type => "uppercase";

t/Uppercase.t

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ ddg_goodie_test(
1414
)],
1515
'upper case this' => test_zci('THIS'),
1616
'uppercase that' => test_zci('THAT'),
17+
'allcaps this string' => test_zci('THIS STRING'),
18+
'that string all caps' => test_zci('THAT STRING'),
19+
'is this uppercase, sir?' => undef,
1720
);
1821

1922
done_testing;

0 commit comments

Comments
 (0)