Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fix tests and daysbetween

  • Loading branch information...
commit 7c120ab501c135acad1c15872006c0225b2f026e 1 parent f7cd676
@crazedpsyc crazedpsyc authored
View
3  lib/DDG/Goodie/DaysBetween.pm
@@ -21,7 +21,8 @@ handle query_lc => sub {
}
if(scalar(@dates) == 6) {
- my ($inclusive, $days1, $days2);
+ my ($days1, $days2);
+ my $inclusive = '';
eval {
$days1 = Date_to_Days(@dates[2,0,1]);
View
2  t/10-combined.t
@@ -40,7 +40,7 @@ ddg_goodie_test(
)],
# ABC
- 'reverse bla' => test_zci('alb', answer_type => 'reverse', is_cached => 1 ),
+ 'reverse bla' => test_zci('Reversed "bla": alb', answer_type => 'reverse', is_cached => 1 ),
'apples or oranges or cherries' => test_zci(qr/(random)/, answer_type => 'rand', is_cached => 0),
'yes or no' => test_zci(qr/\w \(random\)/, answer_type => 'rand', is_cached => 0),
'this or that or none' => test_zci(qr/\w \(random\)/, answer_type => 'rand', is_cached => 0),
View
4 t/Reverse.t
@@ -12,8 +12,8 @@ ddg_goodie_test(
[qw(
DDG::Goodie::Reverse
)],
- 'reverse bla' => test_zci('alb'),
- 'reverse blabla' => test_zci('albalb'),
+ 'reverse bla' => test_zci('Reversed "bla": alb'),
+ 'reverse blabla' => test_zci('Reversed "blabla": albalb'),
);
done_testing;
Please sign in to comment.
Something went wrong with that request. Please try again.