summaryrefslogtreecommitdiff
path: root/Examples/test-suite/octave/input_runme.m
diff options
context:
space:
mode:
Diffstat (limited to 'Examples/test-suite/octave/input_runme.m')
-rw-r--r--Examples/test-suite/octave/input_runme.m22
1 files changed, 22 insertions, 0 deletions
diff --git a/Examples/test-suite/octave/input_runme.m b/Examples/test-suite/octave/input_runme.m
new file mode 100644
index 000000000..757862179
--- /dev/null
+++ b/Examples/test-suite/octave/input_runme.m
@@ -0,0 +1,22 @@
+input
+
+f = Foo();
+if (f.foo(2) != 4)
+ error
+endif
+
+try
+ a=f.foo();
+ error
+catch
+end_try_catch
+
+if (!strcmp(sfoo("Hello"),"Hello world"))
+ error
+endif
+
+try
+ a=sfoo();
+ error
+catch
+end_try_catch