PageRenderTime 9ms CodeModel.GetById 1ms app.highlight 4ms RepoModel.GetById 1ms app.codeStats 0ms

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

#
Python | 19 lines | 12 code | 7 blank | 0 comment | 4 complexity | 369a7fdda8cbe2adae3ac10448229729 MD5 | raw file
 1
 2import _enums
 3
 4_enums.bar2(1)
 5_enums.bar3(1)
 6_enums.bar1(1)
 7
 8if _enums.cvar.enumInstance != 2:
 9  raise RuntimeError
10
11if _enums.cvar.Slap != 10:
12  raise RuntimeError
13
14if _enums.cvar.Mine != 11:
15  raise RuntimeError
16
17if _enums.cvar.Thigh != 12:
18  raise RuntimeError
19