Mercurial > public > mercurial-scm > hg
diff tests/test-parse-date.t @ 16923:dfaf869824f8
test-parse-date: move remaining date parsing tests from test-log
author | Martin Geisler <mg@aragost.com> |
---|---|
date | Mon, 11 Jun 2012 17:45:36 +0200 |
parents | 8627e9ceec08 |
children | ae60735e37d2 |
line wrap: on
line diff
--- 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'