Beispiel #1
0
def test_lens_call_mut_implicitly():
    assert lens.call_mut_sort()([3, 1, 2]) == [1, 2, 3]
Beispiel #2
0
def test_lens_call_mut_kwargs_implicitly():
    result = lens.call_mut_sort(key=len)(["eine", "un", "one"])
    assert result == ["un", "one", "eine"]
Beispiel #3
0
def test_lens_call_mut_kwargs_implicitly():
    result = lens.call_mut_sort(key=len)(['eine', 'un', 'one'])
    assert result == ['un', 'one', 'eine']