view test/bug-38565.tst @ 18095:e89c6ca811e4 classdef

maint: classdef merged to default, closing classdef branch
author John W. Eaton <jwe@octave.org>
date Thu, 05 Dec 2013 12:07:10 -0500
parents b9e510a1f308
children a4faec57f4c8
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");