Skip to content

Commit

Permalink
Add a test-case for nested enumeration in text.
Browse files Browse the repository at this point in the history
  • Loading branch information
htgoebel committed Jun 1, 2015
1 parent 3bcca30 commit b5dfdf0
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions tests/test_convert.py
Original file line number Diff line number Diff line change
Expand Up @@ -239,3 +239,29 @@ def test_no_more_indent(self):
Some code at outer level
"""
self._test(text, expected)

def test_nested_enumeration(self):
# Check if unindenting works as expected.
text = """\
# Some text
#
# 1. list-entry 1
# a. list-entry 1.a
# b. list-entry 1.b
# 2. list-entry 2
Some code under list-entry 2
"""
expected= """\
Some text
1. list-entry 1
a. list-entry 1.a
b. list-entry 1.b
2. list-entry 2
::
Some code under list-entry 2
"""
self._test(text, expected)

0 comments on commit b5dfdf0

Please sign in to comment.