Exemplo n.º 1
0
 def test_one_side_inside1(self):
     seq1 = '12345678'
     seq2 = '012345678'
     output = match_and_glue(seq1, seq2)
     self.assertEqual(output, False)
Exemplo n.º 2
0
 def test_one_small(self):
     seq2 = '012345678'
     seq1 = '56'
     output = match_and_glue(seq1, seq2)
     self.assertEqual(output, False)
Exemplo n.º 3
0
 def test_new_stuff_longer2(self):
     seq2 = '012345678'
     seq1 = '345678xxxxxxx'
     output = match_and_glue(seq1, seq2)
     self.assertEqual(output, '012345678xxxxxxx')
Exemplo n.º 4
0
 def test_seq1_longer(self):
     seq1 = '01234567'
     seq2 = '678'
     output = match_and_glue(seq1, seq2)
     self.assertEqual(output, '012345678')
Exemplo n.º 5
0
 def test_eqlen2(self):
     seq1 = '012345678'
     seq2 = '345678xxx'
     output = match_and_glue(seq1, seq2)
     self.assertEqual(output, '012345678xxx')
Exemplo n.º 6
0
 def test_seq2_not_exist(self):
     seq2 = '01234567'
     seq1 = '333'
     output = match_and_glue(seq1, seq2)
     self.assertEqual(output, False)