f877c37fc6
tests / Test (macos-latest, 3.14) (push) Has been cancelled
tests / Test (ubuntu-latest, 3.10) (push) Has been cancelled
tests / Test (ubuntu-latest, 3.11) (push) Has been cancelled
tests / Test (windows-latest, 3.13) (push) Has been cancelled
tests / Test (windows-latest, 3.14) (push) Has been cancelled
tests / Validate (push) Has been cancelled
tests / Test (macos-latest, 3.10) (push) Has been cancelled
tests / Test (macos-latest, 3.11) (push) Has been cancelled
tests / Test (macos-latest, 3.12) (push) Has been cancelled
tests / Test (macos-latest, 3.13) (push) Has been cancelled
tests / Test (ubuntu-latest, 3.12) (push) Has been cancelled
tests / Test (ubuntu-latest, 3.13) (push) Has been cancelled
tests / Test (ubuntu-latest, 3.14) (push) Has been cancelled
tests / Test (windows-latest, 3.10) (push) Has been cancelled
tests / Test (windows-latest, 3.11) (push) Has been cancelled
tests / Test (windows-latest, 3.12) (push) Has been cancelled
universe validation / Validate (push) Has been cancelled
28 lines
502 B
Python
28 lines
502 B
Python
import pytest
|
|
|
|
from spacy.lang.kmr.lex_attrs import like_num
|
|
|
|
|
|
@pytest.mark.parametrize(
|
|
"word",
|
|
[
|
|
"yekem",
|
|
"duyemîn",
|
|
"100em",
|
|
"dehem",
|
|
"sedemîn",
|
|
"34em",
|
|
"30yem",
|
|
"20emîn",
|
|
"50yemîn",
|
|
],
|
|
)
|
|
def test_kmr_lex_attrs_like_number_for_ordinal(word):
|
|
assert like_num(word)
|
|
|
|
|
|
@pytest.mark.parametrize("word", ["deh"])
|
|
def test_kmr_lex_attrs_capitals(word):
|
|
assert like_num(word)
|
|
assert like_num(word.upper())
|