view test/bug-38565.tst @ 20144:3797df921988

close.m: Silently accept null argument for Matlab compatibility. * close.m: Check isempty (arg1) and don't complain if arg1 is null.
author Rik <rik@octave.org>
date Wed, 29 Apr 2015 17:09:24 -0700
parents b9e510a1f308
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");