PageRenderTime 26ms CodeModel.GetById 15ms app.highlight 7ms RepoModel.GetById 1ms app.codeStats 0ms

/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
Possible License(s): LGPL-2.1, Cube, GPL-3.0, 0BSD, GPL-2.0
 1import grouping
 2
 3x = grouping.test1(42)
 4if x != 42:
 5    raise RuntimeError
 6
 7grouping.test2(42)
 8
 9x = grouping.do_unary(37, grouping.NEGATE)
10if x != -37:
11    raise RuntimeError
12
13grouping.cvar.test3 = 42