Exemple #1
0
 def test_init_u(self):
     s = Sounds('pu')
     assert s.name == 'pu'
     assert s.values == set('pPbBm')
Exemple #2
0
 def test_len(self):
     assert len(Sounds('pu')) == 5
Exemple #3
0
 def test_init_vowel(self):
     for v in 'aAiIuUfFxX':
         s = Sounds(v)
         assert s.name == v
         assert s.values == Sound(v).savarna_set
Exemple #4
0
 def test_iter(self):
     s = Sounds('pu')
     i = 0
     for x in s:
         i += 1
     assert i == 5
Exemple #5
0
 def test_contains(self):
     s = Sounds('pu')
     assert 'p' in s
Exemple #6
0
 def test_init_multiple(self):
     name = 'a pu it'
     s = Sounds(name)
     assert s.name == name
     assert s.values == set('aApPbBmi')
Exemple #7
0
 def test_init_pratyahara(self):
     for name in ['aR', 'eN', 'ac', 'Jay', 'Yam', 'hal']:
         s = Sounds(name)
         assert s.name == name
         assert s.values == Pratyahara(name).values
Exemple #8
0
 def test_init_t(self):
     for v in 'aAiIuUfFxX':
         name = v + 't'
         s = Sounds(name)
         assert s.name == name
         assert s.values == set(v)