view test/bug-38565.tst @ 18235:0806c9e75e08 stable

strip .m when setting or clearing breakpoints (bug #41126) * debug.cc (get_user_code): If name ends in .m, strip it.
author John W. Eaton <jwe@octave.org>
date Tue, 07 Jan 2014 15:00:11 -0500
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");