26 lines
524 B
Perl
26 lines
524 B
Perl
#!/usr/bin/env perl
|
|
|
|
use strict;
|
|
use warnings;
|
|
use Test::More;
|
|
use DDG::Test::Goodie;
|
|
|
|
zci answer_type => 'uppercase';
|
|
zci is_cached => 1;
|
|
|
|
ddg_goodie_test(
|
|
[qw(
|
|
DDG::Goodie::Uppercase
|
|
)],
|
|
'upper case this' => test_zci('THIS',
|
|
html => qr/THIS/),
|
|
'uppercase that' => test_zci('THAT',
|
|
html => qr/THAT/),
|
|
'allcaps this string' => test_zci('THIS STRING',
|
|
html => qr/THIS STRING/),
|
|
'that string all caps' => undef,
|
|
'is this uppercase, sir?' => undef,
|
|
);
|
|
|
|
done_testing;
|