diff options
| author | Ulf Magnusson <ulfalizer@gmail.com> | 2015-06-06 08:37:57 +0200 |
|---|---|---|
| committer | Ulf Magnusson <ulfalizer@gmail.com> | 2015-06-06 08:37:57 +0200 |
| commit | a73f978e4f8e032c2c2668e9c6d1b84840cc619c (patch) | |
| tree | c345cc19f6f0a297efb07598a046fdb10cc32397 | |
| parent | a14311449c96af03be515c561bc5b618f01aea7b (diff) | |
Test help text terminated by comment.
| -rw-r--r-- | tests/Ktext | 8 | ||||
| -rw-r--r-- | testsuite.py | 1 |
2 files changed, 8 insertions, 1 deletions
diff --git a/tests/Ktext b/tests/Ktext index a4c43fe..8ee00e0 100644 --- a/tests/Ktext +++ b/tests/Ktext @@ -29,7 +29,13 @@ comment "a comment" menu "a menu" endmenu -# Tricker help text +config HELP_TERMINATED_BY_COMMENT + bool + help + a + b + c +# config TRICKY_HELP bool diff --git a/testsuite.py b/testsuite.py index e3ce259..e225cbb 100644 --- a/testsuite.py +++ b/testsuite.py @@ -429,6 +429,7 @@ def run_selftests(): verify_equals(c["NO_HELP"].get_help(), None) verify_equals(c["EMPTY_HELP"].get_help(), "") + verify_equals(c["HELP_TERMINATED_BY_COMMENT"].get_help(), "a\nb\nc\n") verify_equals(c["TRICKY_HELP"].get_help(), "a\n b\n c\n\n d\n e\n f\n\n\ng\n h\n i\n") verify_equals(c["S"].get_help(), "help for\nS\n") |
