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

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

#
Python | 20 lines | 13 code | 7 blank | 0 comment | 6 complexity | d43f983e79b57a10e8b68f0e75245d36 MD5 | raw file
 1from struct_initialization import *
 2
 3if cvar.instanceC1.x != 10:
 4  raise RuntimeError
 5
 6if cvar.instanceD1.x != 10:
 7  raise RuntimeError
 8
 9if cvar.instanceD2.x != 20:
10  raise RuntimeError
11
12if cvar.instanceD3.x != 30:
13  raise RuntimeError
14
15if cvar.instanceE1.x != 1:
16  raise RuntimeError
17
18if cvar.instanceF1.x != 1:
19  raise RuntimeError
20