示例#1
0
def test_subset_of_domain():
    """Subset with different domains."""
    ak = F.auto('ak')
    ac = F.auto('ac')
    assert ak.subset_of(ac)
    assert not ac.subset_of(ak)

    dhatu = F.auto('dhatu')
    anga = F.auto('dhatu', 'anga')
    assert dhatu.subset_of(anga)
    assert not anga.subset_of(dhatu)
示例#2
0
def test_subset_of_domain():
    """Subset with different domains."""
    ak = F.auto('ak')
    ac = F.auto('ac')
    assert ak.subset_of(ac)
    assert not ac.subset_of(ak)

    dhatu = F.auto('dhatu')
    anga = F.auto('dhatu', 'anga')
    assert dhatu.subset_of(anga)
    assert not anga.subset_of(dhatu)
示例#3
0
def test_auto_on_lists():
    pairs = [
        (L.IT, F.samjna),
        (L.LA, F.lakshana),
        (L.SAMJNA, F.samjna),
        (L.SOUNDS, F.al),
        (L.TIN, F.raw),
    ]

    for items, function in pairs:
        for item in items:
            assert F.auto(item) == function(item)
示例#4
0
def test_auto_on_lists():
    pairs = [
        (L.IT, F.samjna),
        (L.LA, F.lakshana),
        (L.SAMJNA, F.samjna),
        (L.SOUNDS, F.al),
        (L.TIN, F.raw),
    ]

    for items, function in pairs:
        for item in items:
            assert F.auto(item) == function(item)
示例#5
0
def test_auto_on_dhatu():
    for item in DP.all_dhatu:
        # Ambiguity with F.al('f')
        if item == 'f':
            continue
        assert F.auto(item) == F.dhatu(item)
示例#6
0
def test_auto_on_dhatu():
    for item in DP.all_dhatu:
        # Ambiguity with F.al('f')
        if item == 'f':
            continue
        assert F.auto(item) == F.dhatu(item)