diff libinterp/corefcn/regexp.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 ad0599a0acc6
children aba2e6293dd8
line wrap: on
line diff
--- a/libinterp/corefcn/regexp.cc	Fri Apr 01 12:57:49 2016 -0400
+++ b/libinterp/corefcn/regexp.cc	Fri Apr 01 13:56:09 2016 -0700
@@ -1495,7 +1495,9 @@
 %!assert (regexprep ({"abc","cba"}, {"b","a"}, {"?","!"}), {"!?c","c?!"})
 
 # Nasty lookbehind expression
-%!assert (regexprep ('x^(-1)+y(-1)+z(-1)=0', '(?<=[a-z]+)\(\-[1-9]*\)', '_minus1'),'x^(-1)+y_minus1+z_minus1=0')
+%!test
+%! warning ("off", "Octave:regexp-lookbehind-limit", "local");
+%! assert (regexprep ('x^(-1)+y(-1)+z(-1)=0', '(?<=[a-z]+)\(\-[1-9]*\)', '_minus1'),'x^(-1)+y_minus1+z_minus1=0');
 
 %!assert (regexprep ("\n", '\n', "X"), "X")
 %!assert (regexprep ("\n", "\n", "X"), "X")