]> git.madduck.net Git - etc/vim.git/blob - tests/data/docstring_no_string_normalization.py

madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to patches@git.madduck.net. If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

Fix multiline docstring quote normalization
[etc/vim.git] / tests / data / docstring_no_string_normalization.py
1 class ALonelyClass:
2     '''
3     A multiline class docstring.
4     '''
5     def AnEquallyLonelyMethod(self):
6         '''
7         A multiline method docstring'''
8         pass
9
10
11 def one_function():
12     '''This is a docstring with a single line of text.'''
13     pass
14
15
16 def shockingly_the_quotes_are_normalized():
17     '''This is a multiline docstring.
18     This is a multiline docstring.
19     This is a multiline docstring.
20     '''
21     pass
22
23
24 def foo():
25   """This is a docstring with             
26   some lines of text here
27   """
28   return
29
30
31 def baz():
32   '''"This" is a string with some
33   embedded "quotes"'''
34   return
35
36
37 def poit():
38   """
39   Lorem ipsum dolor sit amet.       
40
41   Consectetur adipiscing elit:
42    - sed do eiusmod tempor incididunt ut labore
43    - dolore magna aliqua
44      - enim ad minim veniam
45      - quis nostrud exercitation ullamco laboris nisi
46    - aliquip ex ea commodo consequat
47   """
48   pass
49
50
51 def under_indent():
52   """
53   These lines are indented in a way that does not
54 make sense.
55   """
56   pass
57
58
59 def over_indent():
60   """
61   This has a shallow indent
62     - But some lines are deeper
63     - And the closing quote is too deep
64     """
65   pass
66
67
68 def single_line():
69     """But with a newline after it!
70
71     """
72     pass
73
74
75 def this():
76     r"""
77     'hey ho'
78     """
79
80
81 def that():
82   """ "hey yah" """
83
84
85 def and_that():
86   """
87   "hey yah" """
88
89
90 def and_this():
91   ''' 
92   "hey yah"'''
93
94
95 def believe_it_or_not_this_is_in_the_py_stdlib(): ''' 
96 "hey yah"'''
97
98
99 def shockingly_the_quotes_are_normalized_v2():
100     '''
101     Docstring Docstring Docstring
102     '''
103     pass
104
105 # output
106
107 class ALonelyClass:
108     '''
109     A multiline class docstring.
110     '''
111
112     def AnEquallyLonelyMethod(self):
113         '''
114         A multiline method docstring'''
115         pass
116
117
118 def one_function():
119     '''This is a docstring with a single line of text.'''
120     pass
121
122
123 def shockingly_the_quotes_are_normalized():
124     '''This is a multiline docstring.
125     This is a multiline docstring.
126     This is a multiline docstring.
127     '''
128     pass
129
130
131 def foo():
132     """This is a docstring with
133     some lines of text here
134     """
135     return
136
137
138 def baz():
139     '''"This" is a string with some
140     embedded "quotes"'''
141     return
142
143
144 def poit():
145     """
146     Lorem ipsum dolor sit amet.
147
148     Consectetur adipiscing elit:
149      - sed do eiusmod tempor incididunt ut labore
150      - dolore magna aliqua
151        - enim ad minim veniam
152        - quis nostrud exercitation ullamco laboris nisi
153      - aliquip ex ea commodo consequat
154     """
155     pass
156
157
158 def under_indent():
159     """
160       These lines are indented in a way that does not
161     make sense.
162     """
163     pass
164
165
166 def over_indent():
167     """
168     This has a shallow indent
169       - But some lines are deeper
170       - And the closing quote is too deep
171     """
172     pass
173
174
175 def single_line():
176     """But with a newline after it!"""
177     pass
178
179
180 def this():
181     r"""
182     'hey ho'
183     """
184
185
186 def that():
187     """ "hey yah" """
188
189
190 def and_that():
191     """
192     "hey yah" """
193
194
195 def and_this():
196     '''
197     "hey yah"'''
198
199
200 def believe_it_or_not_this_is_in_the_py_stdlib():
201     '''
202     "hey yah"'''
203
204
205 def shockingly_the_quotes_are_normalized_v2():
206     '''
207     Docstring Docstring Docstring
208     '''
209     pass