From 9fa8760b6390548cf83cf4b36ab258805455d3c9 Mon Sep 17 00:00:00 2001 From: mitsuhiko Date: Tue, 30 Mar 2010 18:57:56 +0200 Subject: long double exists. --- tests/test_cpp_domain.py | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'tests/test_cpp_domain.py') diff --git a/tests/test_cpp_domain.py b/tests/test_cpp_domain.py index b12e57af..1e722602 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()' assert unicode(parse('function', x)) == x + x = 'explicit module::myclass::foo::foo()' + assert unicode(parse('function', x)) == x x = 'std::vector> 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 -- cgit v1.2.1