diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2021-08-17 13:00:36 -0400 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2021-08-17 13:00:36 -0400 |
commit | b66336c4e1af0e8eae520623e4b018251807b0bb (patch) | |
tree | 46e30435be783478879cd62e5c1a8ce21db4c2fa /src/test/modules/test_regex/sql/test_regex_utf8.sql | |
parent | 78a843f119ca7d4a6eb173a7ee3bed45889d48d8 (diff) | |
download | postgresql-b66336c4e1af0e8eae520623e4b018251807b0bb.tar.gz postgresql-b66336c4e1af0e8eae520623e4b018251807b0bb.zip |
Reduce assumptions about locale's behavior in new regex tests.
I was overoptimistic to assume that UTF8-based locales would all
consider U+1500 to be a member of the [[:alpha:]] char class.
Tweak the test cases added by commit 78a843f11 to avoid that
assumption. We might need to lobotomize them further, but this
should be enough to fix the early buildfarm reports.
Diffstat (limited to 'src/test/modules/test_regex/sql/test_regex_utf8.sql')
-rw-r--r-- | src/test/modules/test_regex/sql/test_regex_utf8.sql | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/test/modules/test_regex/sql/test_regex_utf8.sql b/src/test/modules/test_regex/sql/test_regex_utf8.sql index f23907162e4..2aa3e0f1022 100644 --- a/src/test/modules/test_regex/sql/test_regex_utf8.sql +++ b/src/test/modules/test_regex/sql/test_regex_utf8.sql @@ -62,8 +62,8 @@ select * from test_regex('[[:alnum:]]*[[:upper:]]*[\u1000-\u2000]*\u1237', E'\u1500\u1237', 'iELMP'); -- systematically test char classes -select * from test_regex('[[:alnum:]]+', E'x\u1500\u1237', 'L'); -select * from test_regex('[[:alpha:]]+', E'x\u1500\u1237', 'L'); +select * from test_regex('[[:alnum:]]+', E'x*\u1500\u1237', 'L'); +select * from test_regex('[[:alpha:]]+', E'x*\u1500\u1237', 'L'); select * from test_regex('[[:ascii:]]+', E'x\u1500\u1237', 'L'); select * from test_regex('[[:blank:]]+', E'x \t\u1500\u1237', 'L'); select * from test_regex('[[:cntrl:]]+', E'x\u1500\u1237', 'L'); @@ -75,4 +75,4 @@ select * from test_regex('[[:punct:]]+', E'x.\u1500\u1237', 'L'); select * from test_regex('[[:space:]]+', E'x \t\u1500\u1237', 'L'); select * from test_regex('[[:upper:]]+', E'xX\u1500\u1237', 'L'); select * from test_regex('[[:xdigit:]]+', E'xa9\u1500\u1237', 'L'); -select * from test_regex('[[:word:]]+', E'x_\u1500\u1237', 'L'); +select * from test_regex('[[:word:]]+', E'x_*\u1500\u1237', 'L'); |