Files
fotoplaner/venv/lib/python3.12/site-packages/langcodes/tests/test_issue_59.py
T
anders 16c54c6653 Tilføjet venv med docling og afhængigheder
Testfiler opdelt i PNG og previews
2026-10-27 12:20:23 +01:00

21 lines
515 B
Python

from langcodes import closest_match
def test_language_less_than():
spoken_language_1 = 'pa'
spoken_language_2 = 'pa-PK'
match = closest_match(
spoken_language_1, [spoken_language_2], ignore_script=True
)
print(match)
assert match[0] != "und"
def test_language_more_than():
spoken_language_1 = 'pa-PK'
spoken_language_2 = 'pa'
match = closest_match(
spoken_language_1, [spoken_language_2], ignore_script=True
)
print(match)
assert match[0] != "und"