wiqaya/tests/test_utils.py
2026-03-08 09:50:41 +02:00

12 lines
No EOL
319 B
Python

from wiqaya.utils import remove_tashkeel
def test_no_tashkeel():
text = "مرحبا"
assert remove_tashkeel(text) == text
def test_with_tashkeel():
assert remove_tashkeel("مَرْحَباً") == "مرحبا"
def test_english_unchanged():
text = "hello world"
assert remove_tashkeel(text) == text