[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

SF.net SVN: ledger-smb:[3113] trunk/t/03-date-handling.t



Revision: 3113
          http://ledger-smb.svn.sourceforge.net/ledger-smb/?rev=3113&view=rev
Author:   einhverfr
Date:     2011-01-09 19:01:51 +0000 (Sun, 09 Jan 2011)

Log Message:
-----------
Correcting date handling test regex order to avoid new year problems

Modified Paths:
--------------
    trunk/t/03-date-handling.t

Modified: trunk/t/03-date-handling.t
===================================================================
--- trunk/t/03-date-handling.t	2011-01-06 20:33:32 UTC (rev 3112)
+++ trunk/t/03-date-handling.t	2011-01-09 19:01:51 UTC (rev 3113)
@@ -258,9 +258,9 @@
 		cmp_ok($form->from_to('2000', '02', $_ + 12), 'eq',
 			$results, "from_to, $fmt, 2000-02, $_ + 12 interval");
 	}
-	$results =~ s/2001/$today_parts{'yyyy'}/;
 	$results =~ s/11/$today_parts{'mm'}/;
 	$results =~ s/30/$today_parts{'dd'}/;
+	$results =~ s/2001/$today_parts{'yyyy'}/;
 	cmp_ok($form->from_to('00', '02', '0'), 'eq',
 		$results, "from_to, $fmt, 00-02, 0 interval (today)");
 	cmp_ok($form->from_to('2000', '02', '0'), 'eq',


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.