Ejemplo n.º 1
0
 def test_count_vowels(self):
     self.assertEqual(2, count_vowels("Python"))
     self.assertEqual(8, count_vowels("Theistareykjarbunga")) #It's a volcano name!
     self.assertEqual(0, count_vowels("grrrrgh!"))
     self.assertEqual(22, 
         count_vowels("Github is the second best thing that happend to programmers, after the keyboard!"))
     self.assertEqual(8, count_vowels("A nice day to code!"))
 def test_count_vowels(self):
     self.assertEqual(2, solution.count_vowels("Python"))
     self.assertEqual(8, solution.count_vowels("Theistareykjarbunga"))
     self.assertEqual(0, solution.count_vowels("grrrrgh!"))
     self.assertEqual(
         22,
         solution.count_vowels(
             "Github is the second best thing that happend to programmers, after the keyboard!"
         ))
     self.assertEqual(8, solution.count_vowels("A nice day to code!"))
 def test_count_vowels(self):
     self.assertEqual(count_vowels("Python"), 2)
     self.assertEqual(count_vowels("Theistareykjarbunga"), 8)
     self.assertEqual(count_vowels("grrrrgh!"), 0)
     self.assertEqual(
         count_vowels("Github is the second best thing that happend to programmers, after the keyboard!"), 22
     )
     self.assertEqual(count_vowels("A nice day to code!"), 8)
     self.assertEqual(count_vowels(""), 0)
Ejemplo n.º 4
0
 def test_count_vowels2(self):
     self.assertEqual(4, solution.count_vowels("babababa"))
Ejemplo n.º 5
0
 def test_count_vowels5(self):
     self.assertEqual(8, solution.count_vowels("We have nothing in common!"))
Ejemplo n.º 6
0
 def test_count_vowels3(self):
     self.assertEqual(7, solution.count_vowels("This is this and that is this"))
Ejemplo n.º 7
0
 def test4(self):
     self.assertEqual(8, count_vowels("A nice day to code!"))
Ejemplo n.º 8
0
 def test_one(self):
     self.assertEqual(2, count_vowels("Python"))
Ejemplo n.º 9
0
	def test_count_vowels_2nd(self):
		self.assertEqual(8, solution.count_vowels("Theistareykjarbunga"))
Ejemplo n.º 10
0
 def test_vowels_lower_case(self):
     self.assertEqual(6,solution.count_vowels("alaabalaa"))
     self.assertEqual(7,solution.count_vowels("Ko staaa mo stava"))
     self.assertEqual(6,solution.count_vowels("Iskam si shapkata"))
     self.assertEqual(9,solution.count_vowels("alaa blaaa blggaaa"))
     self.assertEqual(4,solution.count_vowels("albalaa"))
Ejemplo n.º 11
0
	def test_count_vowels_4(self):
		self.assertEqual(22, solution.count_vowels("Github is the second best thing that happend to programmers, after the keyboard!"))
Ejemplo n.º 12
0
 def test_two(self):
     self.assertEqual(8, count_vowels("Theistareykjarbunga"))
Ejemplo n.º 13
0
 def test_with_vowels_only_string(self):
     self.assertEqual(solution.count_vowels('yoyoyoyoyoyoyoyoyoyoyoyo'), 24)
Ejemplo n.º 14
0
 def test_with_consonants_only_strings(self):
     self.assertEqual(solution.count_vowels('ffsffsffsffsffsffsffs'), 0)
Ejemplo n.º 15
0
 def test_vour(self):
     self.assertEquals(
         22,
         count_vowels(
             "Github is the second best thing that happend to programmers, after the keyboard!"
         ))
Ejemplo n.º 16
0
	def test_count_volwest_0(self):
		self.assertEqual(2, count_vowels("Python"))
Ejemplo n.º 17
0
	def test_count_vowels_3rd(self):
		self.assertEqual(0, solution.count_vowels("grrrrgh!"))
Ejemplo n.º 18
0
 def test_three(self):
     self.assertEqual(0, count_vowels("grrrrgh!"))
Ejemplo n.º 19
0
 def test_vowels_upper_case(self):
     self.assertEqual(6,solution.count_vowels("BABA MI E LUDA"))
     self.assertEqual(15,solution.count_vowels("AaAaAAAAAaAAAAA"))
     self.assertEqual(4,solution.count_vowels("QM SALATA SAM"))
Ejemplo n.º 20
0
	def test_count_vowels_1(self):
		self.assertEqual(2, solution.count_vowels("Python"))
Ejemplo n.º 21
0
 def test_five(self):
     self.assertEqual(8, count_vowels("A nice day to code!"))
Ejemplo n.º 22
0
	def test_count_vowels_5th(self):
		self.assertEqual(8, solution.count_vowels("A nice day to code!"))
Ejemplo n.º 23
0
 def test_one(self):
     self.assertEqual(2, count_vowels("Python"))
Ejemplo n.º 24
0
 def test_count_vowels(self):
     self.assertEqual(3, solution.count_vowels('Programing'))
     self.assertEqual(8, solution.count_vowels('Theistareykjarbunga'))
Ejemplo n.º 25
0
 def test_count_vowels3(self):
     self.assertEqual(
         7, solution.count_vowels("This is this and that is this"))
Ejemplo n.º 26
0
 def test2(self):
     self.assertEqual(0, count_vowels("grrrrgh!"))
Ejemplo n.º 27
0
 def test_count_vowels4(self):
     self.assertEqual(
         16,
         solution.count_vowels(
             "Python is an awesome language to program in!"))
Ejemplo n.º 28
0
 def test1(self):
     self.assertEqual(8, count_vowels("Theistareykjarbunga"))
Ejemplo n.º 29
0
 def test_count_vowels5(self):
     self.assertEqual(8,
                      solution.count_vowels("We have nothing in common!"))
Ejemplo n.º 30
0
 def test_count_vowels4(self):
     self.assertEqual(16, solution.count_vowels("Python is an awesome language to program in!"))
Ejemplo n.º 31
0
 def test_count_vowels1(self):
     self.assertEqual(5, solution.count_vowels("This is a test string"))
Ejemplo n.º 32
0
 def test_count_vowels1(self):
     self.assertEqual(5, solution.count_vowels("This is a test string"))
Ejemplo n.º 33
0
 def test_count_vowels2(self):
     self.assertEqual(4, solution.count_vowels("babababa"))
Ejemplo n.º 34
0
	def test_count_volwest_2(self):
		self.assertEqual(7, count_vowels("aaaaaaa"))
Ejemplo n.º 35
0
 def test_with_uppercase_vowels(self):
     self.assertEqual(8, solution.count_vowels("A nice day to code!"))
Ejemplo n.º 36
0
	def test_count_volwest_1(self):
		self.assertEqual(5, count_vowels("alohaloha"))
Ejemplo n.º 37
0
 def test_with_only_uppercase(self):
     self.assertEqual(5, solution.count_vowels("AMAZING TIME!!!"))
Ejemplo n.º 38
0
	def test_count_vowels_3(self):
		self.assertEqual(0, solution.count_vowels("grrrrgh!"))
Ejemplo n.º 39
0
 def test_with_no_vowels(self):
     self.assertEqual(0, solution.count_vowels("RRgRgrrgrgrrhhtttp!"))
Ejemplo n.º 40
0
	def test_count_vowels_5(self):
		self.assertEqual(8, solution.count_vowels("A nice day to code!"))
Ejemplo n.º 41
0
 def test_with_one_word(self):
     self.assertEqual(2, solution.count_vowels("Python"))
Ejemplo n.º 42
0
	def test_count_vowels_2(self):
		self.assertEqual(8, solution.count_vowels("Theistareykjarbunga"))
Ejemplo n.º 43
0
 def test_with_many_vowels(self):
     self.assertEqual(8, solution.count_vowels("Theistareykjarbunga"))
Ejemplo n.º 44
0
	def test_count_vowels_4th(self):
		self.assertEqual(22, solution.count_vowels("Github is the second best thing that happend to programmers, after the keyboard!"))
Ejemplo n.º 45
0
 def test_count_vowels(self):
     self.assertEqual(3, solution.count_vowels('Programing'))
     self.assertEqual(8, solution.count_vowels('Theistareykjarbunga'))
Ejemplo n.º 46
0
	def test_count_vowels_1st(self):
		self.assertEqual(2, solution.count_vowels("Python"))
Ejemplo n.º 47
0
 def test_count_vowels(self):
     self.assertEqual(2, solution.count_vowels('Python'))
     self.assertEqual(8, solution.count_vowels('Theistareykjarbunga'))
Ejemplo n.º 48
0
 def test_solution(self):
     self.assertEqual(2,count_vowels("Python"))
     self.assertEqual(8,count_vowels("A nice day to code!"))
Ejemplo n.º 49
0
 def test_four(self):
     self.assertEqual(22, count_vowels("Github is the second best thing that happend to programmers, after the keyboard!"))