Tests: Add test cases for empty flows

pull/4/head
Adrien Vergé 9 years ago
parent cae100071a
commit 14c99da2bb

@ -36,6 +36,16 @@ class YamlLintTestCase(RuleTestCase):
'doc: ument\n'
'...\n', None, problem=(3, 1))
def test_empty_flows(self):
self.check('---\n'
'- []\n'
'- {}\n'
'- [\n'
']\n'
'- {\n'
'}\n'
'...\n', None)
def test_explicit_mapping(self):
self.check('---\n'
'? key\n'

Loading…
Cancel
Save