swig/Examples/test-suite/python/li_factory_runme.py
Marcelo Matus 97cceb10d2 fix for python 2.1
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8961 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-03-05 06:36:55 +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