diff tests/test-contrib-check-code.t @ 29279:438caf194160

check-code: make repquote distinguish more characters for exact detection This patch makes repquote() distinguish more characters below, as a preparation for exact detection in subsequent patch. - "%" as "%" - "\\" as "b"(ackslash) - "*" as "A"(sterisk) - "+" as "P"(lus) - "-" as "M"(inus) Characters other than "%" don't use itself as replacement, because they are treated as special ones in regexp.
author FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
date Tue, 31 May 2016 21:02:30 +0900
parents 4dd530df4742
children 844f72885fb9
line wrap: on
line diff
--- a/tests/test-contrib-check-code.t	Tue May 31 21:02:30 2016 +0900
+++ b/tests/test-contrib-check-code.t	Tue May 31 21:02:30 2016 +0900
@@ -256,6 +256,10 @@
   >        'bar foo.'
   >        'bar foo:'
   >        'bar foo@'
+  >        'bar foo%'
+  >        'bar foo*'
+  >        'bar foo+'
+  >        'bar foo-'
   >        'bar')
   > EOF
   $ "$check_code" stringjoin.py
@@ -271,4 +275,16 @@
   stringjoin.py:4:
    >        'bar foo@'
    string join across lines with no space
+  stringjoin.py:5:
+   >        'bar foo%'
+   string join across lines with no space
+  stringjoin.py:6:
+   >        'bar foo*'
+   string join across lines with no space
+  stringjoin.py:7:
+   >        'bar foo+'
+   string join across lines with no space
+  stringjoin.py:8:
+   >        'bar foo-'
+   string join across lines with no space
   [1]