tests: test that abbreviated command alias is also paged stable
authorGregory Szorc <gregory.szorc@gmail.com>
Mon, 24 Apr 2017 23:11:44 -0700
branchstable
changeset 32073 04629b2da72c
parent 32072 05cdd5678c6b
child 32074 769c831708c7
tests: test that abbreviated command alias is also paged Explicit test coverage is good.
tests/test-pager.t
--- a/tests/test-pager.t	Mon Apr 24 23:10:43 2017 -0700
+++ b/tests/test-pager.t	Mon Apr 24 23:11:44 2017 -0700
@@ -84,6 +84,16 @@
   paged! 'summary:     modify a 9\n'
   paged! '\n'
 
+Abbreviated command alias should also be paged
+
+  $ hg hist -l 1
+  paged! 'changeset:   10:46106edeeb38\n'
+  paged! 'tag:         tip\n'
+  paged! 'user:        test\n'
+  paged! 'date:        Thu Jan 01 00:00:00 1970 +0000\n'
+  paged! 'summary:     modify a 10\n'
+  paged! '\n'
+
 Pager should not start if stdout is not a tty.
 
   $ hg log -l1 -q --config ui.formatted=False