view test/bug-38565.tst @ 20604:c6059134f5d3 stable

data.cc: Add @w{} around @code segments in docstrings to prevent line breaks. * data.cc: Add @w{} around @code segments in docstrings to prevent line breaks.
author Rik <rik@octave.org>
date Wed, 07 Oct 2015 09:45:44 -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");