tests/test-command-template.t
branchstable
changeset 25638 6047b60cdd09
parent 25637 5eccebe23942
child 25662 ff5172c83002
child 25676 ec9c258e666d
--- a/tests/test-command-template.t	Sat Jun 20 23:13:34 2015 +0900
+++ b/tests/test-command-template.t	Sun Jun 21 13:24:43 2015 +0900
@@ -2280,6 +2280,17 @@
   <>\n<]>
   <>\n<
 
+Test string escaping of quotes:
+
+  $ hg log -Ra -r0 -T '{"\""}\n'
+  "
+  $ hg log -Ra -r0 -T '{"\\\""}\n'
+  \"
+  $ hg log -Ra -r0 -T '{r"\""}\n'
+  \"
+  $ hg log -Ra -r0 -T '{r"\\\""}\n'
+  \\\"
+
 Test leading backslashes:
 
   $ cd latesttag