diff options
author | Robert Lehmann <mail@robertlehmann.de> | 2011-10-08 14:02:13 +0200 |
---|---|---|
committer | Robert Lehmann <mail@robertlehmann.de> | 2011-10-08 14:02:13 +0200 |
commit | 9904596da8c84007f579d9ca9e119468d02cf5fd (patch) | |
tree | 9b6d75d2c9fc9146d9c19fb28b3b1f6b59208577 /tests/test_cpp_domain.py | |
parent | 38ebe67c4e934c9cfd663a0f2c2e21e8c84d29a5 (diff) | |
download | sphinx-git-9904596da8c84007f579d9ca9e119468d02cf5fd.tar.gz |
Fixes #678: Support superclass declarations in C++ domain.
Diffstat (limited to 'tests/test_cpp_domain.py')
-rw-r--r-- | tests/test_cpp_domain.py | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/tests/test_cpp_domain.py b/tests/test_cpp_domain.py index 22e24a08b..ff44c8dbf 100644 --- a/tests/test_cpp_domain.py +++ b/tests/test_cpp_domain.py @@ -74,6 +74,26 @@ def test_type_definitions(): assert unicode(parse('member_object', x)) == x +def test_bases(): + x = 'A' + assert unicode(parse('class', x)) == x + + x = 'A : B' + assert unicode(parse('class', x)) == x + + x = 'A : private B' + assert unicode(parse('class', x)) == x + + x = 'A : public B' + assert unicode(parse('class', x)) == 'A : B' + + x = 'A : B, C' + assert unicode(parse('class', x)) == x + + x = 'A : B, protected C, D' + assert unicode(parse('class', x)) == x + + def test_operators(): x = parse('function', 'void operator new [ ] ()') assert unicode(x) == 'void operator new[]()' |