PageRenderTime 14ms CodeModel.GetById 11ms app.highlight 1ms RepoModel.GetById 1ms 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
 1from li_factory import *
 2
 3circle = Geometry_create(Geometry.CIRCLE)
 4r = circle.radius()
 5if (r != 1.5):
 6    raise RuntimeError
 7
 8point = Geometry_create(Geometry.POINT)
 9w = point.width()
10if (w != 1.0):
11    raise RuntimeError