Skip to content

Commit

Permalink
Test to demonstrate parsing issue with grave accent (`)
Browse files Browse the repository at this point in the history
Misspellings inside Markdown backticks are not detected
because the backticks are part of the word.
  • Loading branch information
DimitriPapadopoulos committed Aug 1, 2023
1 parent 67f67fd commit 3fa54de
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions codespell_lib/tests/test_basic.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,16 @@ def test_basic(
assert cs.main(tmp_path) == 0


def test_default_word_parsing(
tmp_path: Path,
capsys: pytest.CaptureFixture[str],
) -> None:
fname = tmp_path / "parsing"
with fname.open("a") as f:
f.write("`abandonned`\n")
assert cs.main(fname) == 1, "bad"


def test_bad_glob(
tmp_path: Path,
capsys: pytest.CaptureFixture[str],
Expand Down

0 comments on commit 3fa54de

Please sign in to comment.