summaryrefslogtreecommitdiff
path: root/tests/scan.py
diff options
context:
space:
mode:
authorStefan Sauer <ensonic@users.sf.net>2019-02-02 17:37:12 +0100
committerStefan Sauer <ensonic@users.sf.net>2019-02-02 17:37:12 +0100
commit7b9159bd5530677a2e8104b72cc04a8945be3711 (patch)
tree3f832c9ababb20830c121d9020bca1fe9ef73e20 /tests/scan.py
parent93a937ee4856bb1e0744b5273eb9fdfb3d48c6ef (diff)
downloadgtk-doc-7b9159bd5530677a2e8104b72cc04a8945be3711.tar.gz
scan: refactor subsection ordering to make the code testable.
Diffstat (limited to 'tests/scan.py')
-rwxr-xr-xtests/scan.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/scan.py b/tests/scan.py
index 89af154..80fa2b4 100755
--- a/tests/scan.py
+++ b/tests/scan.py
@@ -658,6 +658,13 @@ class ScanHeaderContentTypedefs(ScanHeaderContentTestCase):
self.assertNoDeclFound(slist)
+class SeparateSubSectionsTestCase(unittest.TestCase):
+
+ def test_NoSymbolsGiveEmptyResult(self):
+ liststr = scan.SeparateSubSections([], {})
+ self.assertEqual('\n', liststr)
+
+
if __name__ == '__main__':
unittest.main()