Commit 4c333a89 authored by Lisandro Dalcin's avatar Lisandro Dalcin

more tests for #477

parent 148a8c6b
...@@ -15,3 +15,17 @@ def test(): ...@@ -15,3 +15,17 @@ def test():
True True
""" """
return func(2) return func(2)
def test_defval(x=None):
"""
>>> test_defval()
0.0
>>> test_defval(1)
1.0
>>> test_defval(2.0)
4.0
"""
if x is None:
return func_defval()
else:
return func_defval(x)
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment