/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
- import grouping
- x = grouping.test1(42)
- if x != 42:
- raise RuntimeError
- grouping.test2(42)
- x = grouping.do_unary(37, grouping.NEGATE)
- if x != -37:
- raise RuntimeError
- grouping.cvar.test3 = 42
- grouping.test3 = 42