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

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

#
Python | 22 lines | 16 code | 6 blank | 0 comment | 5 complexity | 1bf85336b34d685891c3cc1ed9db5f79 MD5 | raw file
 1import inout
 2
 3a = inout.AddOne1(1)
 4if a != 2:
 5  raise RuntimeError
 6
 7a = inout.AddOne3(1,1,1)
 8if a != [2,2,2]:
 9  raise RuntimeError
10
11a = inout.AddOne1p((1,1))
12if a != (2,2):
13  raise RuntimeError
14
15a = inout.AddOne2p((1,1),1)
16if a != [(2,2),2]:
17  raise RuntimeError
18
19a = inout.AddOne3p(1,(1,1),1)
20if a != [2,(2,2),2]:
21  raise RuntimeError
22