コード例 #1
0
def words(string, count=0):
    temp = s.words(string)
    if count == 0:
        return bool(temp)
    b = [(count == len(temp))]
    for item in temp:
        b.append(word(item))
    return all(b)
コード例 #2
0
def test_words(input, expected):
    assert s.words(input) == expected
コード例 #3
0
def test_words(input, expected):
    assert s.words(input) == expected
コード例 #4
0
ファイル: validator.py プロジェクト: ETinLV/textminer
def words(word):
    return s.words(word)