diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2020-07-07 10:40:32 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2020-07-07 12:58:37 +0200 |
commit | 813f520674faf874a74fe8cf28423da9a564feb7 (patch) | |
tree | f66c52099b89e546cfa6af21af39fd41742aac94 /rtemsqual/tests/test_content_c.py | |
parent | content: Add CContent.doxyfy() (diff) | |
download | rtems-central-813f520674faf874a74fe8cf28423da9a564feb7.tar.bz2 |
content: Add CContent.add_paragraph()
Diffstat (limited to 'rtemsqual/tests/test_content_c.py')
-rw-r--r-- | rtemsqual/tests/test_content_c.py | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/rtemsqual/tests/test_content_c.py b/rtemsqual/tests/test_content_c.py index 8e93f1eb..3c12d936 100644 --- a/rtemsqual/tests/test_content_c.py +++ b/rtemsqual/tests/test_content_c.py @@ -413,6 +413,28 @@ def test_condition(): """ +def test_add_paragraph(): + content = CContent() + content.add_paragraph("a", "") + assert str(content) == "" + content.add_paragraph("a", "b") + assert str(content) == """@par a +b +""" + content = CContent() + with content.doxygen_block(): + content.add_paragraph("a", ["b", "", "c"]) + assert str(content) == """/** + * @par a + * @parblock + * b + * + * c + * @endparblock + */ +""" + + def test_prepend_copyrights_and_licenses(): content = CContent() content.add("x") |