Commit 497e35f9 authored by Stefan Behnel's avatar Stefan Behnel

extend tests

parent 65393676
...@@ -37,6 +37,9 @@ def test_func_signature(a): ...@@ -37,6 +37,9 @@ def test_func_signature(a):
""" """
>>> test_func_signature(Foo()) >>> test_func_signature(Foo())
<Foo> <Foo>
>>> test_func_signature(123)
Traceback (most recent call last):
TypeError: Cannot convert int to closure_inlining.Foo
""" """
def inner(Foo a): def inner(Foo a):
...@@ -49,6 +52,9 @@ def test_func_signature2(a, b): ...@@ -49,6 +52,9 @@ def test_func_signature2(a, b):
""" """
>>> test_func_signature2(Foo(), 123) >>> test_func_signature2(Foo(), 123)
(<Foo>, 123) (<Foo>, 123)
>>> test_func_signature2(321, 123)
Traceback (most recent call last):
TypeError: Cannot convert int to closure_inlining.Foo
""" """
def inner(Foo a, b): def inner(Foo a, b):
......
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