More operators for C++. Forgot about new/delete and some other less used

such as ->*.
This commit is contained in:
Armin Ronacher
2010-03-02 13:10:44 +01:00
parent 91322038e2
commit a6c625f25c
2 changed files with 80 additions and 54 deletions

View File

@@ -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[]()'