Added gen emitter tests

This commit is contained in:
Jesse Beder
2012-05-23 11:02:42 -05:00
parent 52d01ff154
commit fdfffb0916
2 changed files with 209 additions and 1 deletions

View File

@@ -53,7 +53,7 @@ def comment(value):
return {'emit': 'YAML::Comment("%s")' % value, 'handle': ''}
def gen_templates():
yield [[doc_start(), doc_start(True)], [scalar('foo')], [doc_end(), doc_end(True)]]
yield [[doc_start(), doc_start(True)], [scalar('foo'), scalar('foo\n')], [doc_end(), doc_end(True)]]
def expand(template):
if len(template) == 0: