2012-03-20 16:07:12 -07:00
|
|
|
#!/usr/bin/env perl
|
|
|
|
|
|
|
|
use strict;
|
|
|
|
use warnings;
|
|
|
|
use Test::More;
|
|
|
|
use DDG::Test::Goodie;
|
|
|
|
|
2014-06-15 02:57:34 -07:00
|
|
|
zci answer_type => 'uppercase';
|
2012-03-20 16:07:12 -07:00
|
|
|
zci is_cached => 1;
|
|
|
|
|
|
|
|
ddg_goodie_test(
|
|
|
|
[qw(
|
2014-06-15 02:57:34 -07:00
|
|
|
DDG::Goodie::Uppercase
|
2012-03-20 16:07:12 -07:00
|
|
|
)],
|
2014-06-15 02:57:34 -07:00
|
|
|
'upper case this' => test_zci('THIS'),
|
2012-03-20 16:07:12 -07:00
|
|
|
'uppercase that' => test_zci('THAT'),
|
2014-06-16 09:13:02 -07:00
|
|
|
'allcaps this string' => test_zci('THIS STRING'),
|
|
|
|
'that string all caps' => test_zci('THAT STRING'),
|
|
|
|
'is this uppercase, sir?' => undef,
|
2012-03-20 16:07:12 -07:00
|
|
|
);
|
|
|
|
|
|
|
|
done_testing;
|