tests/test-command-template.t
branchstable
changeset 24886 10a13da8840d
parent 24853 6518880de1b3
child 24903 09124cce913f
--- a/tests/test-command-template.t	Wed Apr 29 21:14:59 2015 -0400
+++ b/tests/test-command-template.t	Thu Apr 30 12:33:36 2015 -0700
@@ -2620,3 +2620,9 @@
   $ hg log -Gv -R a --template "{word('0', desc, 'o', 'h', 'b', 'o', 'y')}"
   hg: parse error: word expects two or three arguments, got 7
   [255]
+
+Test word for invalid numbers
+
+  $ hg log -Gv -R a --template "{word(2, desc)}"
+  hg: parse error: Use strings like '3' for numbers passed to word function
+  [255]