summaryrefslogtreecommitdiffstatshomepage
path: root/tests/bytecode/mp-tests/fun4.py
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2014-04-12 18:00:32 +0100
committerDamien George <damien.p.george@gmail.com>2014-04-12 18:00:32 +0100
commitc2803db010ab575e9387e4eaf2f8090b083b3c5f (patch)
tree3e278d078b421b4c388a0ff1067290d2b775c6c8 /tests/bytecode/mp-tests/fun4.py
parent0a4c210586e0e5f8de4cf87116edbed9070a4810 (diff)
downloadmicropython-c2803db010ab575e9387e4eaf2f8090b083b3c5f.tar.gz
micropython-c2803db010ab575e9387e4eaf2f8090b083b3c5f.zip
tests: Add some bytecode tests.
Diffstat (limited to 'tests/bytecode/mp-tests/fun4.py')
-rw-r--r--tests/bytecode/mp-tests/fun4.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/bytecode/mp-tests/fun4.py b/tests/bytecode/mp-tests/fun4.py
new file mode 100644
index 0000000000..b8d2ac159e
--- /dev/null
+++ b/tests/bytecode/mp-tests/fun4.py
@@ -0,0 +1,5 @@
+def f(a, b=1, *c, d):
+ pass
+ #print(a,b,c,d) # bug in uPy!
+f = lambda a, b, *c, d: None # default arg
+#f = lambda a, b=1, *c, d: None # default arg for lambda not implemented