test-help: improve test coverage
authorHenri Wiechers <hwiechers@gmail.com>
Thu, 24 Dec 2009 18:53:35 +0200
changeset 10140 5d868e0565f6
parent 10139 d09bed527343
child 10141 827b7d6f9016
test-help: improve test coverage Adds a test for help on a command with no options. Extends test coverage of commands.help_ by 2 lines.
tests/test-help
tests/test-help.out
--- a/tests/test-help	Thu Dec 24 18:53:34 2009 +0200
+++ b/tests/test-help	Thu Dec 24 18:53:35 2009 +0200
@@ -18,6 +18,9 @@
 echo %% test ambiguous command help
 hg help ad
 
+echo %% test command without options
+hg help verify
+
 hg help diff
 hg help status
 hg -q help status
--- a/tests/test-help.out	Thu Dec 24 18:53:34 2009 +0200
+++ b/tests/test-help.out	Thu Dec 24 18:53:35 2009 +0200
@@ -301,6 +301,19 @@
  addremove   add all new files, delete all missing files
 
 use "hg -v help ad" to show aliases and global options
+%% test command without options
+hg verify
+
+verify the integrity of the repository
+
+    Verify the integrity of the current repository.
+
+    This will perform an extensive check of the repository's integrity,
+    validating the hashes and checksums of each entry in the changelog,
+    manifest, and tracked files, as well as the integrity of their crosslinks
+    and indices.
+
+use "hg -v help verify" to show global options
 hg diff [OPTION]... [-r REV1 [-r REV2]] [FILE]...
 
 diff repository (or selected files)