diff options
author | Armin Ronacher <armin.ronacher@active-4.com> | 2010-03-02 13:10:44 +0100 |
---|---|---|
committer | Armin Ronacher <armin.ronacher@active-4.com> | 2010-03-02 13:10:44 +0100 |
commit | a6c625f25c793ed64ab99a297ae525777f6774e5 (patch) | |
tree | 07580fd781ae6ed90a81db8efc635add83697a8e /tests/test_cpp_domain.py | |
parent | 91322038e20e1ef5a4340d08708655c054839321 (diff) | |
download | sphinx-git-a6c625f25c793ed64ab99a297ae525777f6774e5.tar.gz |
More operators for C++. Forgot about new/delete and some other less used
such as ->*.
Diffstat (limited to 'tests/test_cpp_domain.py')
-rw-r--r-- | tests/test_cpp_domain.py | 6 |
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[]()' |