PageRenderTime 35ms CodeModel.GetById 8ms RepoModel.GetById 0ms app.codeStats 0ms

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

#
Python | 11 lines | 9 code | 2 blank | 0 comment | 2 complexity | f0eaf473d0948ffe0f920529784a4652 MD5 | raw file
Possible License(s): LGPL-2.1, Cube, GPL-3.0, 0BSD, GPL-2.0
  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