summaryrefslogtreecommitdiff
path: root/tests/test_cpp_domain.py
diff options
context:
space:
mode:
authorArmin Ronacher <armin.ronacher@active-4.com>2011-09-22 11:17:18 +0200
committerArmin Ronacher <armin.ronacher@active-4.com>2011-09-22 11:17:18 +0200
commit49f1425da3c78fb0665bfa9775982a634fe7a8eb (patch)
treecb9478f182c483b1da911b2e5d6e538275ff7dfa /tests/test_cpp_domain.py
parent794e241ba51c92678b345363badc7c507accc0e3 (diff)
downloadsphinx-git-49f1425da3c78fb0665bfa9775982a634fe7a8eb.tar.gz
Added support for strings with commas in template definitions.
Diffstat (limited to 'tests/test_cpp_domain.py')
-rw-r--r--tests/test_cpp_domain.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/test_cpp_domain.py b/tests/test_cpp_domain.py
index 61ad91e7a..30cdb69e7 100644
--- a/tests/test_cpp_domain.py
+++ b/tests/test_cpp_domain.py
@@ -28,6 +28,9 @@ def test_type_definitions():
x = 'void operator()(const boost::array<VertexID, 2>& v) const'
assert unicode(parse('function', x)) == x
+ x = 'void operator()(const boost::array<VertexID, 2, "foo, bar">& v) const'
+ assert unicode(parse('function', x)) == x
+
rv = parse('member_object', 'const std::vector< unsigned int, long> &name')
assert unicode(rv) == 'const std::vector<unsigned int, long>& name'