view test/bug-38565.tst @ 21204:5cff92d32ee7 stable

doc: Update copyright date in octave.texi (partial fix bug #47058).
author Kai T. Ohlhus <k.ohlhus@gmail.com>
date Sat, 06 Feb 2016 22:16:38 +0100
parents b9e510a1f308
children a4faec57f4c8
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");