Added missing test #3826

This commit is contained in:
Alexey Milovidov 2018-12-20 22:13:12 +03:00
parent f6ce803eff
commit b6ebe2df19
2 changed files with 24 additions and 0 deletions

View File

@ -0,0 +1,12 @@
hello
hel\\\\lo
h\\{ell}o
\\(h\\{ell}o\\)
\\(
Hello\\(
\\(Hello
\\(\\(\\(\\(\\(\\(\\(\\(\\(
\\\\
\\\0\\\\\\|\\(\\)\\^\\$\\.\\[\\?\\*\\+\\{
1

View File

@ -0,0 +1,12 @@
SELECT regexpQuoteMeta('hello');
SELECT regexpQuoteMeta('hel\\lo');
SELECT regexpQuoteMeta('h{ell}o');
SELECT regexpQuoteMeta('(h{ell}o)');
SELECT regexpQuoteMeta('');
SELECT regexpQuoteMeta('(');
SELECT regexpQuoteMeta('Hello(');
SELECT regexpQuoteMeta('(Hello');
SELECT regexpQuoteMeta('(((((((((');
SELECT regexpQuoteMeta('\\');
SELECT regexpQuoteMeta('\0\\|()^$.[?*+{');
SELECT DISTINCT regexpQuoteMeta(toString(number)) = toString(number) FROM numbers(100000);