changeset 16362:b9e510a1f308

new test for command syntax * test/bug-38565.tst: New file.
author John W. Eaton <jwe@octave.org>
date Sat, 23 Mar 2013 15:55:45 -0400
parents e1dcd834751f
children d16c255299c0
files test/bug-38565.tst
diffstat 1 files changed, 9 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/test/bug-38565.tst	Sat Mar 23 15:55:45 2013 -0400
@@ -0,0 +1,9 @@
+%!function r = f (x)
+%!  if (ischar (x))
+%!    r = x;
+%!  else
+%!    error ("expecting character string");
+%!  endif
+%!endfunction
+
+%!assert (eval ("f 10;"), "10");