From 42d0a72b749ee6ad0f79da07bb5d65f4ced581b1 Mon Sep 17 00:00:00 2001 From: Laurent Monin Date: Sat, 22 Feb 2020 14:23:50 +0100 Subject: [PATCH] Improve coverage of union_sorted_lists() tests --- test/test_union_sorted_lists.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/test/test_union_sorted_lists.py b/test/test_union_sorted_lists.py index bfb65b64c..837618c60 100644 --- a/test/test_union_sorted_lists.py +++ b/test/test_union_sorted_lists.py @@ -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]