/trunk/Examples/test-suite/python/li_factory_runme.py

# · Python · 11 lines · 9 code · 2 blank · 0 comment · 2 complexity · f0eaf473d0948ffe0f920529784a4652 MD5 · raw file

  1. from li_factory import *
  2. circle = Geometry_create(Geometry.CIRCLE)
  3. r = circle.radius()
  4. if (r != 1.5):
  5. raise RuntimeError
  6. point = Geometry_create(Geometry.POINT)
  7. w = point.width()
  8. if (w != 1.0):
  9. raise RuntimeError