import pytest @pytest.mark.parametrize( "list1, list2, expect", [ ([1, 2, 4], [1, 3, 4], [1, 1, 2, 3, 4, 4]) ] ) def test_cases(list1, list2, expect): assert mergeTwoLists(list1, list2) == expect