Initial commit

This commit is contained in:
Bassem Girgis
2018-12-20 17:34:07 -06:00
parent 7a2d899662
commit 81b4b9e273
34743 changed files with 5940233 additions and 0 deletions

View File

@@ -0,0 +1,21 @@
import overload_extend2
f = overload_extend2.Foo()
if f.test(3) != 1:
raise RuntimeError
if f.test("hello") != 2:
raise RuntimeError
if f.test(3.5, 2.5) != 3:
raise RuntimeError
if f.test("hello", 20) != 1020:
raise RuntimeError
if f.test("hello", 20, 100) != 120:
raise RuntimeError
# C default args
if f.test(f) != 30:
raise RuntimeError
if f.test(f, 100) != 120:
raise RuntimeError
if f.test(f, 100, 200) != 300:
raise RuntimeError