blob: 7d08d482bcb1bdf1defb82ad34578c250d296046 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
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
|