2014-07-16 19:58:38 -07:00
|
|
|
#!/usr/bin/env perl
|
|
|
|
|
|
|
|
use strict;
|
|
|
|
use warnings;
|
|
|
|
|
|
|
|
use Test::More;
|
|
|
|
use DDG::Test::Goodie;
|
|
|
|
|
2014-07-16 20:34:14 -07:00
|
|
|
zci answer_type => 'lowercase';
|
|
|
|
zci is_cached => 1;
|
|
|
|
|
2014-07-16 19:58:38 -07:00
|
|
|
ddg_goodie_test(
|
|
|
|
[
|
|
|
|
'DDG::Goodie::Lowercase'
|
|
|
|
],
|
|
|
|
'lowercase foo' =>
|
|
|
|
test_zci('foo'),
|
|
|
|
'lower case foO' =>
|
|
|
|
test_zci('foo'),
|
|
|
|
'lowercase john Doe' =>
|
|
|
|
test_zci('john doe'),
|
2014-07-17 05:49:43 -07:00
|
|
|
'lowercase GitHub' =>
|
|
|
|
test_zci('github'),
|
|
|
|
'lower case GitHub' =>
|
|
|
|
test_zci('github'),
|
|
|
|
'lc GitHub' =>
|
|
|
|
test_zci('github'),
|
|
|
|
'strtolower GitHub' =>
|
|
|
|
test_zci('github'),
|
|
|
|
'tolower GitHub' =>
|
|
|
|
test_zci('github'),
|
2014-07-16 19:58:38 -07:00
|
|
|
);
|
|
|
|
|
|
|
|
done_testing;
|