tests/test-command-template.t
changeset 34329 6367318327f0
parent 34073 7bbc4e113e5f
child 34330 89aec1834a86
--- a/tests/test-command-template.t	Sun Sep 24 15:22:46 2017 +0900
+++ b/tests/test-command-template.t	Mon Apr 24 21:37:11 2017 +0900
@@ -134,6 +134,20 @@
     (string '\n'))
   -3
 
+Filters bind as close as map operator:
+
+  $ hg debugtemplate -r0 -v '{desc|splitlines % "{line}\n"}'
+  (template
+    (%
+      (|
+        (symbol 'desc')
+        (symbol 'splitlines'))
+      (template
+        (symbol 'line')
+        (string '\n'))))
+  line 1
+  line 2
+
 Keyword arguments:
 
   $ hg debugtemplate -r0 -v '{foo=bar|baz}'