view test/bug-38565.tst @ 20536:1f330d33388f

maint: Periodic merge of stable to default.
author Rik <rik@octave.org>
date Tue, 22 Sep 2015 04:50:47 -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");