changeset 9384:d91078a2652f

test-parse-date: test 12-hours time formats (issue1804)
author Patrick Mezard <pmezard@gmail.com>
date Sun, 23 Aug 2009 11:32:44 +0200
parents 7116494c48ab
children 570416319ed3 f7968bba2307
files tests/test-parse-date tests/test-parse-date.out
diffstat 2 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/tests/test-parse-date	Fri Aug 21 21:52:57 2009 +1200
+++ b/tests/test-parse-date	Sun Aug 23 11:32:44 2009 +0200
@@ -44,6 +44,10 @@
 hg debugdate "Sat Sep 08 21:16:40 2001 +0430"
 hg debugdate "Sat Sep 08 21:16:40 2001 -0430"
 
+# Test 12-hours times
+hg debugdate "2006-02-01 1:00:30PM +0000"
+hg debugdate "1:00:30PM" > /dev/null || echo 'failed'
+
 #Test date formats with '>' or '<' accompanied by space characters
 hg log -d '>' --template '{date|date}\n'
 hg log -d '<' hg log -d '>' --template '{date|date}\n'
--- a/tests/test-parse-date.out	Fri Aug 21 21:52:57 2009 +1200
+++ b/tests/test-parse-date.out	Sun Aug 23 11:32:44 2009 +0200
@@ -34,6 +34,8 @@
 standard: Sat Sep 08 21:16:40 2001 +0430
 internal: 1000000000 16200
 standard: Sat Sep 08 21:16:40 2001 -0430
+internal: 1138798830 0
+standard: Wed Feb 01 13:00:30 2006 +0000
 Sun Jan 15 13:30:00 2006 +0500
 Sun Jan 15 13:30:00 2006 -0800
 Sat Jul 15 13:30:00 2006 +0500