Skip to content

Commit bf23eb7

Browse files
committed
add first tests for curry kwargs support
1 parent 292967f commit bf23eb7

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

‎unpythonic/tests/test_fun.py‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,15 @@ def double(x):
217217
m2 = curry(print, _curry_allow_uninspectable=True)
218218
test[the[m2] is the[m1]]
219219

220+
with testset("curry kwargs support"):
221+
@curry
222+
def testing12(x, y):
223+
return (x, y)
224+
test[testing12(1)(2) == (1, 2)]
225+
test[testing12(1)(y=2) == (1, 2)]
226+
test[testing12(x=1)(y=2) == (1, 2)]
227+
test[testing12(y=2)(x=1) == (1, 2)]
228+
220229
with testset("curry integration with @generic"): # v0.15.0+
221230
@generic
222231
def f(x: int):

0 commit comments

Comments
 (0)