Skip to content

Commit b3df111

Browse files
committed
Test for RST212 Title underline too short.
1 parent b1af987 commit b3df111

1 file changed

Lines changed: 22 additions & 0 deletions

File tree

tests/RST212/short_underline.py

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
"""Print 'Hello world' to the terminal.
2+
3+
Long
4+
=====
5+
An overly long underline (here one extra equals sign)
6+
is considered acceptable.
7+
8+
Short
9+
====
10+
There is a missing equals sign on the above underline,
11+
and that is considered an error. This should fail::
12+
13+
$ flake8 --select RST RST212/short_underline.py
14+
RST212/short_underline.py:10:1: RST299 Title underline too short.
15+
16+
Nice
17+
====
18+
Finally, this underline is just right.
19+
20+
"""
21+
22+
print("Hello world")

0 commit comments

Comments
 (0)