Mercurial > hg > octave-lojdl
changeset 14040:a64f8b6f63e9 stable
test: simplify test for allow_noninteger_range_as_index
* ov-range.cc (allow_noninteger_range_as_index): simplify %!test.
author | Rik <octave@nomad.inbox5.com> |
---|---|
date | Mon, 12 Dec 2011 22:12:32 -0800 |
parents | e98140f84ae0 |
children | 6cb6e390e58c |
files | src/ov-range.cc |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/ov-range.cc +++ b/src/ov-range.cc @@ -669,7 +669,7 @@ %! save = allow_noninteger_range_as_index (); %! warn_state = warning ("query", "Octave:noninteger-range-as-index"); %! unwind_protect -%! save = allow_noninteger_range_as_index (false); +%! allow_noninteger_range_as_index (false); %! fail ('x(2.1:5)'); %! assert (x(2:5), 1:4); %! allow_noninteger_range_as_index (true);