diff options
Diffstat (limited to 'Examples/test-suite/python/li_factory_runme.py')
| -rw-r--r-- | Examples/test-suite/python/li_factory_runme.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/Examples/test-suite/python/li_factory_runme.py b/Examples/test-suite/python/li_factory_runme.py new file mode 100644 index 0000000..fb2c81e --- /dev/null +++ b/Examples/test-suite/python/li_factory_runme.py @@ -0,0 +1,11 @@ +from li_factory import * + +circle = Geometry_create(Geometry.CIRCLE) +r = circle.radius() +if (r != 1.5): + raise RuntimeError + +point = Geometry_create(Geometry.POINT) +w = point.width() +if (w != 1.0): + raise RuntimeError |
