view test/bug-38565.tst @ 20511:7ddb10b31126 stable

__finish__.m: Change from function to script to stay in base workspace (bug #45869). * __finish__.m: Remove function declaration changing it to a script. Update docstring.
author Rik <rik@octave.org>
date Thu, 03 Sep 2015 11:22:35 -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");