summaryrefslogtreecommitdiff
path: root/tests/test_cpp_domain.py
diff options
context:
space:
mode:
authorArmin Ronacher <armin.ronacher@active-4.com>2010-03-30 18:57:56 +0200
committerArmin Ronacher <armin.ronacher@active-4.com>2010-03-30 18:57:56 +0200
commit71a985c06c4e079ef2987a2dbbdfe8f0ae964108 (patch)
tree22439b6b4224b0732f2bfd9c5e9f4ea822da967b /tests/test_cpp_domain.py
parent8e4311099a3f9666d599ab943a434615bc86d4ff (diff)
downloadsphinx-git-71a985c06c4e079ef2987a2dbbdfe8f0ae964108.tar.gz
long double exists.
Diffstat (limited to 'tests/test_cpp_domain.py')
-rw-r--r--tests/test_cpp_domain.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/test_cpp_domain.py b/tests/test_cpp_domain.py
index b12e57af6..1e7226021 100644
--- a/tests/test_cpp_domain.py
+++ b/tests/test_cpp_domain.py
@@ -34,6 +34,8 @@ def test_type_definitions():
x = 'module::myclass::operator std::vector<std::string>()'
assert unicode(parse('function', x)) == x
+ x = 'explicit module::myclass::foo::foo()'
+ assert unicode(parse('function', x)) == x
x = 'std::vector<std::pair<std::string, long long>> module::blah'
assert unicode(parse('type_object', x)) == x
@@ -44,3 +46,10 @@ def test_type_definitions():
def test_operators():
x = parse('function', 'void operator new [ ] ()')
assert unicode(x) == 'void operator new[]()'
+
+ x = parse('function', 'void operator delete ()')
+ assert unicode(x) == 'void operator delete()'
+
+ for op in '*-+=/%!':
+ x = parse('function', 'void operator %s ()' % op)
+ assert unicode(x) == 'void operator%s()' % op