Rules: indentation: Rewrite algorithm

This commit is contained in:
Adrien Vergé
2016-01-14 18:08:19 +01:00
parent 3989a09d32
commit e81b73c111
3 changed files with 77 additions and 35 deletions

View File

@@ -41,8 +41,8 @@ class ColonTestCase(RuleTestCase):
' - o: {k1: v1}\n'
' - p: kdjf\n'
' - q: val0\n'
' q2:\n'
' - val1\n'
' - q2:\n'
' - val1\n'
'...\n', conf)
self.check('---\n'
'object:\n'
@@ -66,8 +66,8 @@ class ColonTestCase(RuleTestCase):
' val\n'
' - o: {k1: v1}\n'
' - o: {k1: v1}\n'
' q2:\n'
' - val1\n'
' - q2:\n'
' - val1\n'
'...\n', conf)
self.check('---\n'
'a: {b: {c: d, e : f}}\n', conf)