tests/test-command-template.t
changeset 30088 d1f5f158768e
parent 30083 bd1f043d1ea3
child 30115 8e42dfde93d1
--- a/tests/test-command-template.t	Sat Oct 08 08:36:39 2016 -0400
+++ b/tests/test-command-template.t	Sat Oct 08 02:26:48 2016 -0700
@@ -3214,6 +3214,11 @@
   hg: parse error: fill expects an integer width
   [255]
 
+  $ COLUMNS=25 hg log -l1 --template '{fill(desc, termwidth, "{node|short}:", "termwidth.{rev}:")}'
+  bcc7ff960b8e:desc to be
+  termwidth.1:wrapped desc
+  termwidth.1:to be wrapped (no-eol)
+
   $ hg log -l 1 --template '{sub(r"[0-9]", "-", author)}'
   {node|short} (no-eol)
   $ hg log -l 1 --template '{sub(r"[0-9]", "-", "{node|short}")}'