view test/bug-38565.tst @ 20291:7ab81a9fa065 stable

io.tst: Add tests for printf hex or octal conversion on string inputs * io.tst: Add tests for printf hex or octal conversion on string inputs to ensure correct behavior following cset 7fa170cc14fe.
author Mike Miller <mtmiller@octave.org>
date Wed, 10 Jun 2015 08:42:11 -0400
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");