Beispiel #1
0
 def test_findsolution_simplecase(self):
     sequence_align = SequenceAlignment(self.x9, self.y9)
     _, solution = sequence_align.alignment()
     self.assertEqual(self.correct_solution9, solution)
Beispiel #2
0
 def test_y_longer_than_x(self):
     sequence_align = SequenceAlignment(self.x7, self.y7)
     editsteps, _ = sequence_align.alignment()
     self.assertEqual(self.correct_editstep7, editsteps)
Beispiel #3
0
 def test_more_complicated_example(self):
     sequence_align = SequenceAlignment(self.x8, self.y8)
     editsteps, _ = sequence_align.alignment()
     self.assertEqual(self.correct_editstep8, editsteps)
Beispiel #4
0
 def test_remove_insert_align(self):
     sequence_align = SequenceAlignment(self.x5, self.y5)
     editsteps, _ = sequence_align.alignment()
     self.assertEqual(self.correct_editstep5, editsteps)
Beispiel #5
0
 def test_x_longer_than_y(self):
     sequence_align = SequenceAlignment(self.x6, self.y6)
     editsteps, _ = sequence_align.alignment()
     self.assertEqual(self.correct_editstep6, editsteps)
Beispiel #6
0
 def test_insert_elements(self):
     sequence_align = SequenceAlignment(self.x4, self.y4)
     editsteps, _ = sequence_align.alignment()
     self.assertEqual(self.correct_editstep4, editsteps)
Beispiel #7
0
 def test_remove_to_empty(self):
     sequence_align = SequenceAlignment(self.x3, self.y3)
     editsteps, _ = sequence_align.alignment()
     self.assertEqual(self.correct_editstep3, editsteps)
Beispiel #8
0
 def test_remove(self):
     sequence_align = SequenceAlignment(self.x2, self.y2)
     editsteps, _ = sequence_align.alignment()
     self.assertEqual(self.correct_editstep2, editsteps)
Beispiel #9
0
 def test_simplecase(self):
     sequence_align = SequenceAlignment(self.x1, self.y1)
     editsteps, _ = sequence_align.alignment()
     self.assertEqual(self.correct_editstep1, editsteps)
Beispiel #10
0
 def test_findsolution_empty_x(self):
     sequence_align = SequenceAlignment(self.x11, self.y11)
     _, solution = sequence_align.alignment()
     self.assertEqual(self.correct_solution11, solution)