Skip to content

Commit

Permalink
Added test for nontrivial function definition.
Browse files Browse the repository at this point in the history
  • Loading branch information
cnuernber committed Dec 5, 2019
1 parent 66ef14a commit 77687de
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions testcode/__init__.py
Expand Up @@ -22,3 +22,17 @@ def for_iter(arg):

def calling_custom_clojure_fn(arg):
return arg.clojure_fn()



def complex_fn(a, b, c: str=5, *args, d=10, **kwargs):
return {"a" : a,
"b" : b,
"c" : c,
"args" : args,
"d": d,
"kwargs": kwargs}


complex_fn_testcases = {"complex_fn(1, 2, c=10, d=10, e=10)":complex_fn(1, 2, c=10, d=10, e=10),
"complex_fn(1, 2, 10, 11, 12, d=10, e=10)":complex_fn(1, 2, 10, 11, 12, d=10, e=10)}

0 comments on commit 77687de

Please sign in to comment.