aboutsummaryrefslogtreecommitdiff
path: root/Examples/test-suite/python/grouping_runme.py
diff options
context:
space:
mode:
Diffstat (limited to 'Examples/test-suite/python/grouping_runme.py')
-rw-r--r--Examples/test-suite/python/grouping_runme.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/Examples/test-suite/python/grouping_runme.py b/Examples/test-suite/python/grouping_runme.py
new file mode 100644
index 000000000..13f8c8c92
--- /dev/null
+++ b/Examples/test-suite/python/grouping_runme.py
@@ -0,0 +1,13 @@
+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