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')
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')
def test_empty_path(self): a1, a2 = get_allignments([(0, 0)], 'S', 'M') self.assertEqual(a1, '') self.assertEqual(a2, '')
def test_diagonal_allignment(self): a1, a2 = get_allignments([(1, 1), (0, 0)], 'S', 'M') self.assertEqual(a1, 'S') self.assertEqual(a2, 'M')