blob: 4a8a0165e2149c2de318bf288a1d87b7f3c5ee4b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
import overload_extend
f = overload_extend.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
|