예제 #1
0
def test_f_sct_copy_pos(addx):
    assert F()._sct_copy(addx)('x')('state') == 'statex'
예제 #2
0
def f2():
    return F._from_func(lambda state=None: state + 'c')
예제 #3
0
def test_f_sct_copy_kw(addx):
    assert F()._sct_copy(addx)(x = 'x')('state') == 'statex'
예제 #4
0
def f():
    return F._from_func(lambda state=None: state + 'b')