Mercurial > octave
comparison libinterp/octave-value/ov-range.cc @ 21575:bc9aa534bc29
maint: Clean up BIST tests so they don't produce warnings.
* data.cc (Fhorzcat): Temporarily disable "num-to-str" warning for BIST tests.
* luinc.cc (__luinc__): Move BIST tests to luinc.m.
* luinc.m: Add BIST tests for luinc.
* regexp.cc (Fregexp): Temporarily disable "regexp-lookbehind-limit" for BIST
tests.
* sqrtm.cc (Fsqrtm): Temporarily disable "sqrtm:SingularMatrix" for BIST tests.
* __eigs__.cc, __init_fltk__.cc, __init_gnuplot__.cc: Add 'assert (1)'
BIST test to mark internal functions as tested.
* ov-range.cc (Fallow_noninteger_range_as_index: Temporarily disable
"deprecated-syntax" for BIST tests.
* quadv.m: Temporarily disable "divide-by-zero" warning for BIST tests.
* imfinfo.m: Temporarily disable "GraphicsMagic-Quantum-Depth" for BIST tests.
author | Rik <rik@octave.org> |
---|---|
date | Fri, 01 Apr 2016 13:56:09 -0700 |
parents | 40de9f8f23a6 |
children | 66cae7a6dc47 |
comparison
equal
deleted
inserted
replaced
21574:ae4d7dfea337 | 21575:bc9aa534bc29 |
---|---|
724 } | 724 } |
725 | 725 |
726 /* | 726 /* |
727 %!test | 727 %!test |
728 %! x = 0:10; | 728 %! x = 0:10; |
729 %! warning ("off", "Octave:deprecated-function", "local"); | |
729 %! save = allow_noninteger_range_as_index (); | 730 %! save = allow_noninteger_range_as_index (); |
730 %! warn_state = warning ("query", "Octave:noninteger-range-as-index"); | 731 %! warn_state = warning ("query", "Octave:noninteger-range-as-index"); |
731 %! unwind_protect | 732 %! unwind_protect |
732 %! allow_noninteger_range_as_index (false); | 733 %! allow_noninteger_range_as_index (false); |
733 %! fail ("x(2.1:5)"); | 734 %! fail ("x(2.1:5)"); |