swig/Examples/test-suite/python/li_factory_runme.py
Marcelo Matus 26d42ec95d fixes for python 2.1
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8877 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-02-23 09:08:49 +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