/tags/rel-1.3.35/Examples/test-suite/python/grouping_runme.py

# · Python · 13 lines · 9 code · 4 blank · 0 comment · 2 complexity · 4142cbcc086a688526e76da8ca10cf09 MD5 · raw file

  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