コード例 #1
0
 def test_merge_concatenates_lists(self):
     l1 = [1, 2, 3]
     l2 = [4, 5, 6]
     result = utils.merge(l1, l2)
     for x in (l1 + l2):
         assert x in result
コード例 #2
0
 def test_merge_concatenates_lists(self):
     l1 = [1, 2, 3]
     l2 = [4, 5, 6]
     result = utils.merge(l1, l2)
     for x in (l1 + l2):
         assert x in result
コード例 #3
0
 def test_merge_eliminates_duplicate_entries(self):
     l1 = [1, 2]
     l2 = [2, 3]
     result = utils.merge(l1, l2)
     for x in (l1 + l2):
         assert result.count(x) == 1
コード例 #4
0
 def test_merge_eliminates_duplicate_entries(self):
     l1 = [1, 2]
     l2 = [2, 3]
     result = utils.merge(l1, l2)
     for x in (l1 + l2):
         assert result.count(x) == 1