Skip to content
Myr

Added a testcase for the last change.

Before adoption: this commit came in with the history the project adopted, so no landing records it.

--HG-- branch : trunk

authored by Armin Ronacher · committed by Armin Ronacher · parent 1bb3ab7 · Browse files · 1 file+2 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+2 added−1 removed

  • tests:+2 added−1 removed

1 file+2 added−1 removed

modified:tests/test_parser.py+2 added-1 removed
57 unmodified lines
58/* ignore me.59 I'm a multiline comment */60# for item in seq:61* ${item} ## this is just extra stuff62 ## extra stuff i just want to ignore63# endfor64'''6566
43 unmodified lines
110 tmpl = env.from_string(LINE_SYNTAX_PRIORITY1)111 assert tmpl.render(seq=[1, 2]).strip() == '* 1\n* 2'112 env = Environment('{%', '%}', '${', '}', '/*', '*/', '#', '##')113 tmpl = env.from_string(LINE_SYNTAX_PRIORITY2)113 assert tmpl.render(seq=[1, 2]).strip() == '* 1\n* 2'114 assert tmpl.render(seq=[1, 2]).strip() == '* 1\n\n* 2'