diff options
Diffstat (limited to 'tests/test_domain_cpp.py')
-rw-r--r-- | tests/test_domain_cpp.py | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/tests/test_domain_cpp.py b/tests/test_domain_cpp.py index ae3e1fa1e..5a41b6dd2 100644 --- a/tests/test_domain_cpp.py +++ b/tests/test_domain_cpp.py @@ -87,7 +87,7 @@ def check(name, input, idDict, output=None): # First, check without semicolon _check(name, input, idDict, output) # Second, check with semicolon - _check(name, input + ';', idDict, output + ';') + _check(name, input + ' ;', idDict, output + ';') def test_fundamental_types(): @@ -910,6 +910,13 @@ def test_build_domain_cpp_backslash_ok(app, status, warning): assert len(ws) == 0 +@pytest.mark.sphinx(testroot='domain-cpp', confoverrides={'nitpicky': True}) +def test_build_domain_cpp_semicolon(app, status, warning): + app.builder.build_all() + ws = filter_warnings(warning, "semicolon") + assert len(ws) == 0 + + @pytest.mark.sphinx(testroot='domain-cpp', confoverrides={'nitpicky': True, 'strip_signature_backslash': True}) def test_build_domain_cpp_backslash_ok(app, status, warning): |