diff options
author | jfbu <jfbu@free.fr> | 2019-08-01 17:49:24 +0200 |
---|---|---|
committer | jfbu <jfbu@free.fr> | 2019-08-01 17:49:24 +0200 |
commit | 685e3fdb49c42b464e09ec955e1033e2a8729fff (patch) | |
tree | a7ad90fbd9c2a076575f612caf0d6baa7c4fb555 /tests/test_domain_std.py | |
parent | eeca5ee91d2da817d4ad9e920ad7e4cabd966d08 (diff) | |
parent | 5a86a71a8fe6d4e8c3861f755cc9b05b5b10f0cf (diff) | |
download | sphinx-git-685e3fdb49c42b464e09ec955e1033e2a8729fff.tar.gz |
Merge branch '2.0'
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" |