view test/bug-38565.tst @ 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
children
line wrap: on
line source

%!function r = f (x)
%!  if (ischar (x))
%!    r = x;
%!  else
%!    error ("expecting character string");
%!  endif
%!endfunction

%!assert (eval ("f 10;"), "10");