def test_remove_null_with_null(): xs = [1, None, 2, None] assert main.remove_null(sum)(xs) == 3
def test_remove_null_without_null(): xs = [1, 2, 3, 4] assert main.remove_null(sum)(xs) == 10