Improve coverage of union_sorted_lists() tests

This commit is contained in:
Laurent Monin
2020-02-22 14:23:50 +01:00
parent 170b8e0aa7
commit 42d0a72b74

View File

@@ -8,10 +8,12 @@ class UnionSortedListsTest(PicardTestCase):
def test_1(self):
list1 = [1, 2, 3]
list2 = [3, 4, 5]
expected = [1, 2, 3, 4, 5]
list2 = [3, 4, 5, 6]
expected = [1, 2, 3, 4, 5, 6]
r = union_sorted_lists(list1, list2)
self.assertEqual(r, expected)
r = union_sorted_lists(list2, list1)
self.assertEqual(r, expected)
def test_2(self):
list1 = [1, 3, 5, 7]