Exemple #1
0
 def test_reversing_traversal_order(self):
     a1, a2 = get_allignments([(2, 2), (1, 1), (0, 0)], 'SM', 'SM')
     self.assertEqual(a1, 'SM')
     self.assertEqual(a2, 'SM')
Exemple #2
0
 def test_left_top_allignment(self):
     a1, a2 = get_allignments([(1, 1), (1, 0), (0, 0)], 'S', 'M')
     self.assertEqual(a1, 'S-')
     self.assertEqual(a2, '-M')
Exemple #3
0
 def test_empty_path(self):
     a1, a2 = get_allignments([(0, 0)], 'S', 'M')
     self.assertEqual(a1, '')
     self.assertEqual(a2, '')
Exemple #4
0
 def test_diagonal_allignment(self):
     a1, a2 = get_allignments([(1, 1), (0, 0)], 'S', 'M')
     self.assertEqual(a1, 'S')
     self.assertEqual(a2, 'M')