summaryrefslogtreecommitdiff
path: root/Examples/test-suite/octave/li_factory_runme.m
blob: 5ea9b779f0f4088b59dec8bd7ea78e4ec73a67f5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# do not dump Octave core
if exist("crash_dumps_octave_core", "builtin")
  crash_dumps_octave_core(0);
endif

li_factory

circle = Geometry_create(Geometry.CIRCLE);
r = circle.radius();
if (r != 1.5)
  error
endif

point = Geometry_create(Geometry.POINT);
w = point.width();
if (w != 1.0)
  error
endif