PageRenderTime 13ms CodeModel.GetById 10ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

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

#
Python | 9 lines | 6 code | 3 blank | 0 comment | 2 complexity | d70a55df24337649d307e9f36f3482f4 MD5 | raw file
1import struct_value
2
3b = struct_value.Bar()
4
5b.a.x = 3
6if b.a.x != 3: raise RuntimeError
7
8b.b.x = 3
9if b.b.x != 3: raise RuntimeError