Test that a longer run keeps a space at one end only

This commit is contained in:
2026-11-17 03:48:21 +01:00
parent a1e72d98f1
commit f56962cd8d
@@ -139,6 +139,9 @@ class PredictedTest(unittest.TestCase):
# The spelling adf_codec gives a code mark: it pads a longer run only where the text opens or ends in a backtick.
self.assertEqual(predicted("Touches:\n- ``a`b.md``: ``## The `foo` tool`` (small), ``` `` ```, `` `x` ``\n"), {"a`b.md": (Part("## The `foo` tool", small=True), Part("``"), Part("`x`"))})
def test_a_longer_run_with_a_space_at_one_end_only_keeps_it(self) -> None:
self.assertEqual(predicted("Touches:\n- `a.md`: `` x``, ``y ``, `` a ``\n"), {"a.md": (Part(" x"), Part("y "), Part("a"))})
@needs_docker
def test_a_list_written_in_markdown_and_read_back_from_a_jira_description_reads_as_written(self) -> None:
description = convert.markdown_to_adf(DETAIL)