projects
/
external
/
swig.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
import source from 1.3.40
[external/swig.git]
/
Examples
/
test-suite
/
python
/
li_factory_runme.py
1
from li_factory import *
2
3
circle = Geometry_create(Geometry.CIRCLE)
4
r = circle.radius()
5
if (r != 1.5):
6
raise RuntimeError
7
8
point = Geometry_create(Geometry.POINT)
9
w = point.width()
10
if (w != 1.0):
11
raise RuntimeError