Skip to content

Commit f7236af

Browse files
committed
Add ICU's regextst.txt to the REGEXP test suite
Take the cases of ICU's own regex test file, pinned at a commit and checked by its SHA-256 hash. The generator reads the file like ICU's test runner: it unescapes the subject and removes the group tags. ICU flags map to MySQL match types: "i", "m", "s", and "D" become "i", "m", "n", and "u", and "x" becomes "(?x)". Cases that MySQL can't run are left out: literal mode ("Q"), strict escapes ("e"), regions, and subjects with lone surrogates. Flags for ICU's API, like the number of searches, give the same MySQL case, so duplicates are left out too. The data keeps ICU's copyright and the Unicode License V3 next to it. https://github.com/unicode-org/icu/blob/438d6ec0c1d8b6a3f572a7fcc89efc302e05c937/icu4c/source/test/testdata/regextst.txt
1 parent e054ba7 commit f7236af

5 files changed

Lines changed: 5245 additions & 3 deletions

File tree

0 commit comments

Comments
 (0)