diff --git a/bin/touch_predictions/test_touch_predictions.py b/bin/touch_predictions/test_touch_predictions.py index 7671ae4a..0450f7c2 100644 --- a/bin/touch_predictions/test_touch_predictions.py +++ b/bin/touch_predictions/test_touch_predictions.py @@ -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)