PageRenderTime 5ms CodeModel.GetById 1ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

/trunk/Examples/test-suite/python/voidtest_runme.py

#
Python | 29 lines | 20 code | 9 blank | 0 comment | 4 complexity | eb7e0dd30bf8898b33b1492efbf22e29 MD5 | raw file
 1import voidtest
 2
 3voidtest.globalfunc()
 4f = voidtest.Foo()
 5f.memberfunc()
 6
 7voidtest.Foo_staticmemberfunc()
 8
 9def fvoid():
10    pass
11
12if  f.memberfunc() != fvoid():
13    raise RuntimeError
14
15
16v1 = voidtest.vfunc1(f)
17v2 = voidtest.vfunc2(f)
18if v1 != v2:
19    raise RuntimeError
20
21v3 = voidtest.vfunc3(v1)
22if v3.this != f.this:
23    raise RuntimeError
24v4 = voidtest.vfunc1(f)
25if v4 != v1:
26    raise RuntimeError
27
28
29v3.memberfunc()