def test_f_sct_copy_pos(addx): assert F()._sct_copy(addx)('x')('state') == 'statex'
def f2(): return F._from_func(lambda state=None: state + 'c')
def test_f_sct_copy_kw(addx): assert F()._sct_copy(addx)(x = 'x')('state') == 'statex'
def f(): return F._from_func(lambda state=None: state + 'b')