From e8c1b8c5bd42dc66f294b5662fddc069040abff9 Mon Sep 17 00:00:00 2001 From: David Halter Date: Wed, 11 Jul 2012 02:09:52 +0200 Subject: [PATCH] more kwargs tests --- test/completion/functions.py | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/test/completion/functions.py b/test/completion/functions.py index 6a931ac6..f491ac7d 100644 --- a/test/completion/functions.py +++ b/test/completion/functions.py @@ -178,9 +178,23 @@ exe[1][1] def kwargs_func(**kwargs): return kwargs -exe = kwargs_func(a=3,b=4) +exe = kwargs_func(a=3,b=4.0) #? dict() exe +#? int() +exe['a'] +#? float() +exe['b'] +#? int() float() +exe['c'] + +exe = kwargs_func(3, a=3) +#? dict() +exe +#? int() +exe['a'] +#? [] +exe['b'] # ----------------- # *args / ** kwargs @@ -238,7 +252,7 @@ def nested_kw2(**kwargs2): #? int() nested_kw(b=1, c=1.0, list) #? int() -nested_kw('', b=1, c=1.0, list) +nested_kw('', b=1) #? int() nested_kw('', d=1.0, b=1, list) #? int()