# HG changeset patch # User Martin Geisler # Date 1339429536 -7200 # Node ID dfaf869824f868e7253ec0c28cd1ad8150a29efd # Parent fbeaac1bd2dc549615723b6b216fac6eb763ee34 test-parse-date: move remaining date parsing tests from test-log diff -r fbeaac1bd2dc -r dfaf869824f8 tests/test-log.t --- a/tests/test-log.t Mon Jun 11 17:41:55 2012 +0200 +++ b/tests/test-log.t Mon Jun 11 17:45:36 2012 +0200 @@ -539,22 +539,6 @@ date: Thu Jan 01 00:00:01 1970 +0000 summary: r1 -log -d " " (whitespaces only) - - $ hg log -d " " - abort: dates cannot consist entirely of whitespace - [255] - -log -d -1 - - $ hg log -d -1 - -Negative ranges - $ hg log -d "--2" - abort: -2 must be nonnegative (see 'hg help dates') - [255] - - log -p -l2 --color=always $ hg --config extensions.color= --config color.mode=ansi \ diff -r fbeaac1bd2dc -r dfaf869824f8 tests/test-parse-date.t --- a/tests/test-parse-date.t Mon Jun 11 17:41:55 2012 +0200 +++ b/tests/test-parse-date.t Mon Jun 11 17:45:36 2012 +0200 @@ -93,6 +93,22 @@ standard: Wed Feb 01 13:00:30 2006 +0000 $ hg debugdate "1:00:30PM" > /dev/null +Normal range + + $ hg log -d -1 + +Negative range + + $ hg log -d "--2" + abort: -2 must be nonnegative (see 'hg help dates') + [255] + +Whitespace only + + $ hg log -d " " + abort: dates cannot consist entirely of whitespace + [255] + Test date formats with '>' or '<' accompanied by space characters $ hg log -d '>' --template '{date|date}\n'