diff options
Diffstat (limited to 'tests/test_domain_std.py')
-rw-r--r-- | tests/test_domain_std.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/test_domain_std.py b/tests/test_domain_std.py index 1a03060e6..c7a7b496a 100644 --- a/tests/test_domain_std.py +++ b/tests/test_domain_std.py @@ -244,6 +244,17 @@ def test_glossary_sorted(app): [nodes.definition, nodes.paragraph, "description"]) +def test_glossary_alphanumeric(app): + text = (".. glossary::\n" + "\n" + " 1\n" + " /\n") + restructuredtext.parse(app, text) + objects = list(app.env.get_domain("std").get_objects()) + assert ("1", "1", "term", "index", "term-1", -1) in objects + assert ("/", "/", "term", "index", "term-0", -1) in objects + + def test_cmdoption(app): text = (".. program:: ls\n" "\n" |