[dw-free] Many tests in t/ fail
[commit: http://hg.dwscoalition.org/dw-free/rev/497dabd42b7e]
http://bugs.dwscoalition.org/show_bug.cgi?id=1721
Fix birthdays.t
Patch by
szabgab.
Files modified:
http://bugs.dwscoalition.org/show_bug.cgi?id=1721
Fix birthdays.t
Patch by
![[personal profile]](https://www.dreamwidth.org/img/silk/identity/user.png)
Files modified:
- cgi-bin/LJ/User.pm
- t/birthday.t
-------------------------------------------------------------------------------- diff -r 8647cff10862 -r 497dabd42b7e cgi-bin/LJ/User.pm --- a/cgi-bin/LJ/User.pm Sun Aug 30 08:32:25 2009 +0000 +++ b/cgi-bin/LJ/User.pm Sun Aug 30 15:03:26 2009 +0000 @@ -2737,7 +2737,7 @@ sub next_birthdays { # opt_showbday options # F - Full Display of Birthday -# D - Only Show Month/Day +# D - Only Show Month/Day DEFAULT # Y - Only Show Year # N - Do not display sub opt_showbday { diff -r 8647cff10862 -r 497dabd42b7e t/birthday.t --- a/t/birthday.t Sun Aug 30 08:32:25 2009 +0000 +++ b/t/birthday.t Sun Aug 30 15:03:26 2009 +0000 @@ -175,9 +175,9 @@ sub run_tests { $isok = 1; } } elsif ($year eq '1979') { - if ($month eq '01' && $day eq '31' && $rv eq '1979-01-31') { + if ($month eq '01' && $day eq '31' && $rv eq '01-31') { $isok = 1; - } elsif (($month eq '00' || $day eq '00') && $rv eq '1979') { + } elsif (($month eq '00' || $day eq '00') && $rv eq '') { $isok = 1; } } --------------------------------------------------------------------------------
no subject
no subject
no subject