/trunk/Examples/test-suite/python/inout_runme.py
Python | 22 lines | 16 code | 6 blank | 0 comment | 5 complexity | 1bf85336b34d685891c3cc1ed9db5f79 MD5 | raw file
Possible License(s): LGPL-2.1, Cube, GPL-3.0, 0BSD, GPL-2.0
- import inout
- a = inout.AddOne1(1)
- if a != 2:
- raise RuntimeError
- a = inout.AddOne3(1,1,1)
- if a != [2,2,2]:
- raise RuntimeError
- a = inout.AddOne1p((1,1))
- if a != (2,2):
- raise RuntimeError
- a = inout.AddOne2p((1,1),1)
- if a != [(2,2),2]:
- raise RuntimeError
- a = inout.AddOne3p(1,(1,1),1)
- if a != [2,(2,2),2]:
- raise RuntimeError