Download tests/unit/test_text_utils.py from Kyosuke0/yomitalk: direct link, hf CLI and curl.
- Browser
- Download file 1.69 kB
-
https://huggingface.co/spaces/Kyosuke0/yomitalk/resolve/main/tests/unit/test_text_utils.py
- Command line
-
hf download hf://spaces/Kyosuke0/yomitalk/tests/unit/test_text_utils.py
-
curl -L -o test_text_utils.py https://huggingface.co/spaces/Kyosuke0/yomitalk/resolve/main/tests/unit/test_text_utils.py
1.69 kB
| """Unit tests for text utility functions.""" | |
| import pytest | |
| from yomitalk.utils.text_utils import is_romaji_readable | |
| class TestTextUtils: | |
| """Test class for text utility functions.""" | |
| def test_is_romaji_readable(self, input_text, expected_result): | |
| """Test checking if text is romaji readable.""" | |
| result = is_romaji_readable(input_text) | |
| assert result == expected_result, f"Expected {expected_result} for '{input_text}', but got {result}" | |