-
Notifications
You must be signed in to change notification settings - Fork 20
/
Copy pathdocstrings.feature
49 lines (47 loc) · 983 Bytes
/
docstrings.feature
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
Feature: DocString variations
Scenario: minimalistic
Given a simple DocString
"""
first line (no indent)
second line (indented with two spaces)
third line was empty
"""
Given a DocString with content type
"""xml
<foo>
<bar />
</foo>
"""
And a DocString with wrong indentation
"""
wrongly indented line
"""
And a DocString with alternative separator
```
first line
second line
```
And a DocString with normal separator inside
```
first line
"""
third line
```
And a DocString with alternative separator inside
"""
first line
```
third line
"""
And a DocString with escaped separator inside
"""
first line
\"\"\"
third line
"""
And a DocString with an escaped alternative separator inside
```
first line
\`\`\`
third line
```