annotate test/bug-38565.tst @ 18479:85d31344fb23 stable rc-3-8-1-2

3.8.1 release candidate 2 * configure.ac (OCTAVE_VERSION): Bump to 3.8.1-rc2. (OCTAVE_MINOR_VERSION): Bump to 1-rc2. (OCTAVE_RELEASE_DATE): Set to 2014-02-14.
author John W. Eaton <jwe@octave.org>
date Mon, 17 Feb 2014 02:20:39 -0500
parents b9e510a1f308
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
16362
b9e510a1f308 new test for command syntax
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1 %!function r = f (x)
b9e510a1f308 new test for command syntax
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2 %! if (ischar (x))
b9e510a1f308 new test for command syntax
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3 %! r = x;
b9e510a1f308 new test for command syntax
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4 %! else
b9e510a1f308 new test for command syntax
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5 %! error ("expecting character string");
b9e510a1f308 new test for command syntax
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6 %! endif
b9e510a1f308 new test for command syntax
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7 %!endfunction
b9e510a1f308 new test for command syntax
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8
b9e510a1f308 new test for command syntax
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9 %!assert (eval ("f 10;"), "10");