Skip to content

Commit

Permalink
checks: Add test for WeblateOrg#5576
Browse files Browse the repository at this point in the history
  • Loading branch information
nijel committed Jun 6, 2023
1 parent 8b231f6 commit e3b8cfd
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions weblate/checks/tests/test_duplicate_checks.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,3 +106,12 @@ def test_same_bbcode(self):
self.assertFalse(self.check.check_single("", "for [em]x[/em]", MockUnit()))
self.assertTrue(self.check.check_single("", "em [em]x[/em]", MockUnit()))
self.assertTrue(self.check.check_single("", "em [em]x", MockUnit()))

def test_duplicated_punctuation(self):
self.assertFalse(
self.check.check_single(
"",
"megjegyzéseket (a ``#`` karaktereket)",
MockUnit(source="comments (``#`` characters)"),
)
)

0 comments on commit e3b8cfd

Please sign in to comment.