diff options
author | Stefan Sauer <ensonic@users.sf.net> | 2019-02-02 17:37:12 +0100 |
---|---|---|
committer | Stefan Sauer <ensonic@users.sf.net> | 2019-02-02 17:37:12 +0100 |
commit | 7b9159bd5530677a2e8104b72cc04a8945be3711 (patch) | |
tree | 3f832c9ababb20830c121d9020bca1fe9ef73e20 /tests/scan.py | |
parent | 93a937ee4856bb1e0744b5273eb9fdfb3d48c6ef (diff) | |
download | gtk-doc-7b9159bd5530677a2e8104b72cc04a8945be3711.tar.gz |
scan: refactor subsection ordering to make the code testable.
Diffstat (limited to 'tests/scan.py')
-rwxr-xr-x | tests/scan.py | 7 |
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() |