Ejemplo n.º 1
0
 def test_countLetters_bababc_should_return_1_1(self):
     """Test for countLetters"""
     twice, threeTimes = countLetters("bababc")
     self.assertEqual(twice, 1)
     self.assertEqual(threeTimes, 1)
Ejemplo n.º 2
0
 def test_countLetters_ababab_should_return_1_1(self):
     """Test for countLetters """
     twice, threeTimes = countLetters("ababab")
     self.assertEqual(twice, 0)
     self.assertEqual(threeTimes, 2)
Ejemplo n.º 3
0
 def test_countLetters_abcdef_should_return_0_0(self):
     """Test for """
     twice, threeTimes = countLetters("abcdef")
     self.assertEqual(twice, 0)
     self.assertEqual(threeTimes, 0)