diff options
Diffstat (limited to 'Examples/test-suite/python/functors_runme.py')
-rw-r--r-- | Examples/test-suite/python/functors_runme.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/Examples/test-suite/python/functors_runme.py b/Examples/test-suite/python/functors_runme.py new file mode 100644 index 000000000..98945a047 --- /dev/null +++ b/Examples/test-suite/python/functors_runme.py @@ -0,0 +1,12 @@ +from functors import * + +a = Functor0(10) +b = Functor1(10) +c = Functor2(10) + +if a()!=-10: + raise RuntimeError("a failed") +if b(1)!=11: + raise RuntimeError("b failed") +if c(1, 2)!=13: + raise RuntimeError("c failed") |