Example #1
0
 def testA04order_intersection(self):
     """misc: order_intersection() alert source change"""
     a = [1, 2, 3, 4, 5, 10]
     b = [1, 3, 4, 5, 6, 10]
     c = [1, 3, 4, 5, 4, 5, 5, 10, None]
     ll = [a, b, c]
     tl = order_intersection(ll)
     self.assertEqual(tl, [5, 4, 1, 10, 3])
Example #2
0
 def testA03order_intersection(self):
     """misc: order_intersection()"""
     a = [1, 2, 3, 4]
     b = [3, 4, 5, 6]
     c = [3, 4, 4, 5]
     ll = [a, b, c]
     tl = order_intersection(ll)
     self.assertEqual(tl, [4, 3])