Ejemplo n.º 1
0
 def test_countVowelsAndConsonants_All_Spaces(self):
     self.assertEquals(countVowelsAndConsonants("     "), [0, 0, 0, 0])
Ejemplo n.º 2
0
 def test_countVowelsAndConsonants_Everything_Together(self):
     self.assertEquals(countVowelsAndConsonants("AdE@c&*  U*_oiIP"),
                       [6, 3, 5, 14])
Ejemplo n.º 3
0
 def test_countVowelsAndConsonants_Vowels_Consonants_Others_Mixed_Case(self):
     self.assertEquals(countVowelsAndConsonants("AeI!@XY"), [3, 2, 2, 7])
Ejemplo n.º 4
0
 def test_countVowelsAndConsonants_Vowels_Consonants_Mixed_Case(self):
     self.assertEquals(countVowelsAndConsonants("AeIXY"), [3, 2, 0, 5])
Ejemplo n.º 5
0
 def test_countVowelsAndConsonants_All_Non_Vowels_Consonants(self):
     self.assertEquals(countVowelsAndConsonants("!@#$%&*"), [0, 0, 7, 7])
Ejemplo n.º 6
0
 def test_countVowelsAndConsonants_All_Consonants(self):
     self.assertEquals(countVowelsAndConsonants("BCDZ"), [0, 4, 0, 4])
Ejemplo n.º 7
0
 def test_countVowelsAndConsonants_All_Vowels(self):
     self.assertEquals(countVowelsAndConsonants("AEIOU"), [5, 0, 0, 5])