changeset 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 fbeaac1bd2dc
children 21b12b22c024
files tests/test-log.t tests/test-parse-date.t
diffstat 2 files changed, 16 insertions(+), 16 deletions(-) [+]
line wrap: on
line diff
--- 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 \
--- 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'