diff tests/test_parse_files/test_functiondef.py @ 56:c3cc16b933d2

Implement function arguments of all kinds.
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Sun, 12 Jun 2016 03:48:24 +0100
parents 2f1625a65d56
children 5df52b40fe54
line wrap: on
line diff
--- a/tests/test_parse_files/test_functiondef.py
+++ b/tests/test_parse_files/test_functiondef.py
@@ -1,2 +1,8 @@
-def func():
-    print(1)
+def func0():
+    pass
+def func1(a, b: str):
+    pass
+def func2(a, *, b: composite.type, c=2, d: int=3):
+    pass
+def func3(a, c=1, *args, b=2, **kwargs):
+    pass