blob: 35e6811f58fdb7851b288252a14266afec9d09b7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
import overload_extend_c
f = overload_extend_c.Foo()
if f.test() != 0:
raise RuntimeError
if f.test(3) != 1:
raise RuntimeError
if f.test("hello") != 2:
raise RuntimeError
if f.test(3, 2) != 5:
raise RuntimeError
if f.test(3.0) != 1003:
raise RuntimeError
|