Mercurial > octave
comparison 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 |
comparison
equal
deleted
inserted
replaced
21574:ae4d7dfea337 | 21575:bc9aa534bc29 |
---|---|
1493 %!assert (regexprep ("abc", {"b","a"}, "?"), "??c") | 1493 %!assert (regexprep ("abc", {"b","a"}, "?"), "??c") |
1494 %!assert (regexprep ({"abc","cba"}, "b", "?"), {"a?c","c?a"}) | 1494 %!assert (regexprep ({"abc","cba"}, "b", "?"), {"a?c","c?a"}) |
1495 %!assert (regexprep ({"abc","cba"}, {"b","a"}, {"?","!"}), {"!?c","c?!"}) | 1495 %!assert (regexprep ({"abc","cba"}, {"b","a"}, {"?","!"}), {"!?c","c?!"}) |
1496 | 1496 |
1497 # Nasty lookbehind expression | 1497 # Nasty lookbehind expression |
1498 %!assert (regexprep ('x^(-1)+y(-1)+z(-1)=0', '(?<=[a-z]+)\(\-[1-9]*\)', '_minus1'),'x^(-1)+y_minus1+z_minus1=0') | 1498 %!test |
1499 %! warning ("off", "Octave:regexp-lookbehind-limit", "local"); | |
1500 %! assert (regexprep ('x^(-1)+y(-1)+z(-1)=0', '(?<=[a-z]+)\(\-[1-9]*\)', '_minus1'),'x^(-1)+y_minus1+z_minus1=0'); | |
1499 | 1501 |
1500 %!assert (regexprep ("\n", '\n', "X"), "X") | 1502 %!assert (regexprep ("\n", '\n', "X"), "X") |
1501 %!assert (regexprep ("\n", "\n", "X"), "X") | 1503 %!assert (regexprep ("\n", "\n", "X"), "X") |
1502 */ | 1504 */ |