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