tests/test-contrib-check-code.t
changeset 29276 4dd530df4742
parent 28594 d3990da51637
child 29279 438caf194160
--- a/tests/test-contrib-check-code.t	Sat May 21 21:43:29 2016 +0900
+++ b/tests/test-contrib-check-code.t	Tue May 31 20:58:10 2016 +0900
@@ -248,3 +248,27 @@
    > {desc|escape}
    warning: follow desc keyword with either firstline or websub
   [1]
+
+'string join across lines with no space' detection
+
+  $ cat > stringjoin.py <<EOF
+  > foo = (' foo'
+  >        'bar foo.'
+  >        'bar foo:'
+  >        'bar foo@'
+  >        'bar')
+  > EOF
+  $ "$check_code" stringjoin.py
+  stringjoin.py:1:
+   > foo = (' foo'
+   string join across lines with no space
+  stringjoin.py:2:
+   >        'bar foo.'
+   string join across lines with no space
+  stringjoin.py:3:
+   >        'bar foo:'
+   string join across lines with no space
+  stringjoin.py:4:
+   >        'bar foo@'
+   string join across lines with no space
+  [1]