summaryrefslogtreecommitdiff
path: root/tests/test_cpp_domain.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_cpp_domain.py')
-rw-r--r--tests/test_cpp_domain.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/test_cpp_domain.py b/tests/test_cpp_domain.py
index 48de51c1e..b12e57af6 100644
--- a/tests/test_cpp_domain.py
+++ b/tests/test_cpp_domain.py
@@ -19,7 +19,6 @@ def parse(name, string):
def test_type_definitions():
- """Tests the type definition parsing"""
rv = parse('member_object', ' const std::string & name = 42')
assert unicode(rv) == 'const std::string& name = 42'
@@ -40,3 +39,8 @@ def test_type_definitions():
assert unicode(parse('type_object', x)) == x
assert unicode(parse('type_object', 'long long int foo')) == 'long long foo'
+
+
+def test_operators():
+ x = parse('function', 'void operator new [ ] ()')
+ assert unicode(x) == 'void operator new[]()'