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