tests/test-command-template.t
changeset 26504 875e5d89dc86
parent 26486 8a732c322ca7
parent 26502 4ca98a389152
child 26856 baa77652be68
--- a/tests/test-command-template.t	Fri Oct 02 13:00:47 2015 -0700
+++ b/tests/test-command-template.t	Wed Oct 07 13:44:48 2015 -0500
@@ -3448,6 +3448,11 @@
   hg: parse error: word expects an integer index
   [255]
 
+Test word for out of range
+
+  $ hg log -R a --template "{word(10000, desc)}"
+  $ hg log -R a --template "{word(-10000, desc)}"
+
 Test indent and not adding to empty lines
 
   $ hg log -T "-----\n{indent(desc, '>> ', ' > ')}\n" -r 0:1 -R a