Mercurial > public > mercurial-scm > hg-stable
diff tests/test-ui-config.py @ 11309:ef7636efeb01
ui: handle leading newlines/spaces/commas in configlist
Thanks to Greg Ward for spotting the problem introduced in 0a548640e012
and for supplying the test case.
author | Thomas Arendsen Hein <thomas@intevation.de> |
---|---|
date | Tue, 08 Jun 2010 21:09:41 +0200 |
parents | 0a548640e012 |
children | 4c50552fc9bc |
line wrap: on
line diff
--- a/tests/test-ui-config.py Tue Jun 08 11:58:09 2010 -0500 +++ b/tests/test-ui-config.py Tue Jun 08 21:09:41 2010 +0200 @@ -24,6 +24,7 @@ 'lists.list15=" just with starting quotation', 'lists.list16="longer quotation" with "no ending quotation', 'lists.list17=this is \\" "not a quotation mark"', + 'lists.list18=\n \n\nding\ndong', ]) print repr(testui.configitems('values')) @@ -62,6 +63,7 @@ print repr(testui.configlist('lists', 'list15')) print repr(testui.configlist('lists', 'list16')) print repr(testui.configlist('lists', 'list17')) +print repr(testui.configlist('lists', 'list18')) print repr(testui.configlist('lists', 'unknown')) print repr(testui.configlist('lists', 'unknown', '')) print repr(testui.configlist('lists', 'unknown', 'foo'))