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

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

#
Python | 11 lines | 8 code | 3 blank | 0 comment | 2 complexity | 2a851e3f7a9794a7077d2ed13f207a92 MD5 | raw file
 1import li_std_map_member
 2
 3a = li_std_map_member.mapita()
 4a[1] = li_std_map_member.TestA()
 5
 6if (a[1].i != 1) :
 7    raise RuntimeError("a[1] != 1")
 8
 9a[1].i = 2
10if (a[1].i != 2) :
11    raise RuntimeError("a[1] != 2")