From 9ed9930b61659359cd1211335993fc2479ec8dd8 Mon Sep 17 00:00:00 2001 From: Andy Heninger Date: Fri, 31 Mar 2017 23:09:56 +0000 Subject: [PATCH] ICU-12160 Add regex test to verify behavior of hitEnd() after find(). X-SVN-Rev: 39978 --- icu4c/source/test/testdata/regextst.txt | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/icu4c/source/test/testdata/regextst.txt b/icu4c/source/test/testdata/regextst.txt index 6873f4835c9..a3f8dc78f5b 100644 --- a/icu4c/source/test/testdata/regextst.txt +++ b/icu4c/source/test/testdata/regextst.txt @@ -1355,6 +1355,13 @@ "[^\u0000-\U0010ffff]bc?" "bc no match" "[^\u0000-\U0010ffff]?bc?" "<0>bc has a match" +# Bug #12160 Hit End behavior after find fails to find. +# To match Java, should be true if find fails to find. +# +"abc" Z "<0>abc abc abc xyz" +"abc" Z2 "abc <0>abc abc xyz" +"abc" Z3 "abc abc <0>abc xyz" +"abc" z4 "abc abc abc xyz" # Random debugging, Temporary #