Exemplo n.º 1
0
 def test_normal(self):
     self.assertEqual(countingValleys((8), ('UDDDUDUU')), (1))
Exemplo n.º 2
0
 def test_allu(self):
     self.assertEqual(countingValleys((10), ('UUUUUUUUUU')), (0))
Exemplo n.º 3
0
 def test_lowca(self):
     self.assertEqual(countingValleys((10), ('ududududud')), (0))
Exemplo n.º 4
0
 def test_du(self):
     self.assertEqual(countingValleys((10), ('UDUDUDUDUD')), (0))
Exemplo n.º 5
0
 def test_alld(self):
     self.assertEqual(countingValleys((8), ('DDDDDDDD')), (0))
Exemplo n.º 6
0
 def test_sum_testcase1(self):
     self.assertEqual(countingValleys(12,'DDUUDDUDUUUD'),2)
Exemplo n.º 7
0
 def test_sum_testcase0(self):
     self.assertEqual(countingValleys(8,'UDDDUDUU'),1)