view test/bug-38565.tst @ 21638:acaf1e137c5e stable release-4-0-2

Version 4.0.2 released. * configure.ac: Bump version to 4.0.2. (OCTAVE_PATCH_VERSION): Bump to 2. (OCTAVE_RELEASE_DATE): Update. * liboctave/Makefile.am (liboctave_revision): Increment. * libinterp/Makefile.am (liboctinterp_revision): Increment.
author John W. Eaton <jwe@octave.org>
date Wed, 20 Apr 2016 15:00:37 -0400
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");