Example #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)
Example #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)
Example #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)
Example #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)
Example #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)
Example #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)