/trunk/Examples/test-suite/python/cpp_enum_runme.py
Python | 23 lines | 17 code | 6 blank | 0 comment | 4 complexity | aca2440e8a63ec4302f0634f1c8a2b1a MD5 | raw file
1import cpp_enum 2 3f = cpp_enum.Foo() 4 5if f.hola != f.Hello: 6 print f.hola 7 raise RuntimeError 8 9f.hola = f.Hi 10if f.hola != f.Hi: 11 print f.hola 12 raise RuntimeError 13 14f.hola = f.Hello 15 16if f.hola != f.Hello: 17 print f.hola 18 raise RuntimeError 19 20cpp_enum.cvar.hi = cpp_enum.Hello 21if cpp_enum.cvar.hi != cpp_enum.Hello: 22 print cpp_enum.cvar.hi 23 raise RuntimeError