Exemplo n.º 1
0
 def test_hf_reduce5(self):
     result = reduce_halfway("12131415")
     self.assertEqual("1111", result)
Exemplo n.º 2
0
 def test_hf_reduce4(self):
     result = reduce_halfway("123123")
     self.assertEqual("123123", result)
Exemplo n.º 3
0
 def test_hf_reduce2(self):
     result = reduce_halfway("1221")
     self.assertEqual("", result)
Exemplo n.º 4
0
 def test_hf_reduce3(self):
     result = reduce_halfway("123425")
     self.assertEqual("22", result)
Exemplo n.º 5
0
 def test_hf_reduce1(self):
     result = reduce_halfway("1212")
     self.assertEqual("1212", result)