swig/SWIG/Examples/test-suite/python/li_factory_runme.py
Marcelo Matus 52ca5dcdf6 add the factory library for UTL
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8865 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-02-22 18:42:20 +00:00

11 lines
223 B
Python

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