summaryrefslogtreecommitdiff
path: root/tests/test_domain_cpp.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_domain_cpp.py')
-rw-r--r--tests/test_domain_cpp.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/test_domain_cpp.py b/tests/test_domain_cpp.py
index ec7a2b262..b22a51730 100644
--- a/tests/test_domain_cpp.py
+++ b/tests/test_domain_cpp.py
@@ -60,8 +60,8 @@ def _check(name, input, idDict, output, key, asTextOutput):
print("Result: ", res)
print("Expected: ", outputAst)
raise DefinitionError("")
- rootSymbol = Symbol(None, None, None, None, None, None)
- symbol = rootSymbol.add_declaration(ast, docname="TestDoc")
+ rootSymbol = Symbol(None, None, None, None, None, None, None)
+ symbol = rootSymbol.add_declaration(ast, docname="TestDoc", line=42)
parentNode = addnodes.desc()
signode = addnodes.desc_signature(input, '')
parentNode += signode
@@ -1246,8 +1246,8 @@ def test_mix_decl_duplicate(app, warning):
restructuredtext.parse(app, text)
ws = warning.getvalue().split("\n")
assert len(ws) == 5
- assert "index.rst:2: WARNING: Duplicate C++ declaration, also defined in 'index'." in ws[0]
- assert "Declaration is 'void A()'." in ws[1]
- assert "index.rst:3: WARNING: Duplicate C++ declaration, also defined in 'index'." in ws[2]
- assert "Declaration is 'A'." in ws[3]
+ assert "index.rst:2: WARNING: Duplicate C++ declaration, also defined at index:1." in ws[0]
+ assert "Declaration is '.. cpp:function:: void A()'." in ws[1]
+ assert "index.rst:3: WARNING: Duplicate C++ declaration, also defined at index:1." in ws[2]
+ assert "Declaration is '.. cpp:struct:: A'." in ws[3]
assert ws[4] == "" \ No newline at end of file