view test/bug-38565.tst @ 18964:a0c514c243f6 default tip @

maint: Use Octave coding conventions for %!test in graphics.cc. * graphics.cc: Use Octave coding conventions for %!test in graphics.cc.
author Rik <rik@octave.org>
date Mon, 28 Jul 2014 08:36:39 -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");