PageRenderTime 54ms CodeModel.GetById 22ms RepoModel.GetById 1ms app.codeStats 0ms

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

#
Python | 14 lines | 10 code | 4 blank | 0 comment | 2 complexity | a2458db66db1a6f8fba71037863026b9 MD5 | raw file
Possible License(s): LGPL-2.1, Cube, GPL-3.0, 0BSD, GPL-2.0
  1. import grouping
  2. x = grouping.test1(42)
  3. if x != 42:
  4. raise RuntimeError
  5. grouping.test2(42)
  6. x = grouping.do_unary(37, grouping.NEGATE)
  7. if x != -37:
  8. raise RuntimeError
  9. grouping.cvar.test3 = 42
  10. grouping.test3 = 42