Mercurial > octave
changeset 24606:4a4a8b2a5bf2 stable
Test for incorrect regexprep on ARM platforms (bug #52810).
* regexp.cc (regexprep): Add BIST test.
author | Colin Macdonald <cbm@m.fsf.org> |
---|---|
date | Mon, 15 Jan 2018 10:31:30 -0800 |
parents | 3e17190dfaea |
children | a27dcb26f872 e2cf81bcdf01 |
files | libinterp/corefcn/regexp.cc |
diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/libinterp/corefcn/regexp.cc Mon Jan 15 08:08:32 2018 -0800 +++ b/libinterp/corefcn/regexp.cc Mon Jan 15 10:31:30 2018 -0800 @@ -1516,4 +1516,8 @@ %!assert (regexprep ("\n", '\n', "X"), "X") %!assert (regexprep ("\n", "\n", "X"), "X") + +## Empty matches were broken on ARM architecture +%!test <*52810> +%! assert (strcmp (regexprep ("\nabc", "^(\t*)(abc)$", "$1$2", "lineanchors"), "\nabc")) */