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

SF.net SVN: ledger-smb:[3114] branches/1.2/t/03-date-handling.t



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

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

Modified Paths:
--------------
    branches/1.2/t/03-date-handling.t

Modified: branches/1.2/t/03-date-handling.t
===================================================================
--- branches/1.2/t/03-date-handling.t	2011-01-09 19:01:51 UTC (rev 3113)
+++ branches/1.2/t/03-date-handling.t	2011-01-09 19:02:58 UTC (rev 3114)
@@ -274,9 +274,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.