Пример #1
0
def test_remove_null_with_null():
    xs = [1, None, 2, None]
    assert main.remove_null(sum)(xs) == 3
Пример #2
0
def test_remove_null_with_null():
    xs = [1, None, 2, None]
    assert main.remove_null(sum)(xs) == 3
Пример #3
0
def test_remove_null_without_null():
    xs = [1, 2, 3, 4]
    assert main.remove_null(sum)(xs) == 10
Пример #4
0
def test_remove_null_without_null():
    xs = [1, 2, 3, 4]
    assert main.remove_null(sum)(xs) == 10