swig/Examples/test-suite/octave/input_runme.m
2020-08-27 17:19:13 +10:00

27 lines
353 B
Mathematica

# do not dump Octave core
if exist("crash_dumps_octave_core", "builtin")
crash_dumps_octave_core(0);
endif
input
f = Foo();
if (f.foo(2) != 4)
error("failed");
endif
try
a=f.foo();
error("failed");
catch
end_try_catch
if (!strcmp(sfoo("Hello"),"Hello world"))
error("failed");
endif
try
a=sfoo();
error("failed");
catch
end_try_catch