/trunk/Examples/test-suite/python/li_factory_runme.py
# · Python · 11 lines · 9 code · 2 blank · 0 comment · 2 complexity · f0eaf473d0948ffe0f920529784a4652 MD5 · raw file
- 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