afuna: Cat under a blanket. Text: "Cats are just little people with Fur and Fangs" (Default)
afuna ([personal profile] afuna) wrote in [site community profile] changelog2009-08-30 03:03 pm

[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 [personal profile] szabgab.

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;
                             }
                         }
--------------------------------------------------------------------------------
owl: Stylized barn owl (Default)

[personal profile] owl 2009-08-30 08:47 pm (UTC)(link)
LJ codebase has tests?? :-P
owl: Motherboard and CD (computer)

[personal profile] owl 2009-08-31 07:57 am (UTC)(link)
Heeeee. I have known projects like that :P