27 lines
353 B
Mathematica
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
|