PageRenderTime 45ms CodeModel.GetById 23ms RepoModel.GetById 0ms 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
Possible License(s): LGPL-2.1, Cube, GPL-3.0, 0BSD, GPL-2.0
  1. import li_std_map_member
  2. a = li_std_map_member.mapita()
  3. a[1] = li_std_map_member.TestA()
  4. if (a[1].i != 1) :
  5. raise RuntimeError("a[1] != 1")
  6. a[1].i = 2
  7. if (a[1].i != 2) :
  8. raise RuntimeError("a[1] != 2")