diff options
Diffstat (limited to 'tests/test_domain_std.py')
-rw-r--r-- | tests/test_domain_std.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/test_domain_std.py b/tests/test_domain_std.py index 93504c482..adde491c4 100644 --- a/tests/test_domain_std.py +++ b/tests/test_domain_std.py @@ -264,6 +264,16 @@ def test_glossary_alphanumeric(app): assert ("/", "/", "term", "index", "term-0", -1) in objects +def test_glossary_conflicted_labels(app): + text = (".. _term-foo:\n" + ".. glossary::\n" + "\n" + " foo\n") + restructuredtext.parse(app, text) + objects = list(app.env.get_domain("std").get_objects()) + assert ("foo", "foo", "term", "index", "term-0", -1) in objects + + def test_cmdoption(app): text = (".. program:: ls\n" "\n" |