Пример #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')
Пример #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')
Пример #3
0
 def test_empty_path(self):
     a1, a2 = get_allignments([(0, 0)], 'S', 'M')
     self.assertEqual(a1, '')
     self.assertEqual(a2, '')
Пример #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')