diff --git a/dbms/tests/queries/0_stateless/00625_startsWith.reference b/dbms/tests/queries/0_stateless/00625_startsWith.reference new file mode 100644 index 00000000000..da88868d9a7 --- /dev/null +++ b/dbms/tests/queries/0_stateless/00625_startsWith.reference @@ -0,0 +1,9 @@ +0 +0 +1 +1 +0 +0 +1 +1 +1 diff --git a/dbms/tests/queries/0_stateless/00625_startsWith.sql b/dbms/tests/queries/0_stateless/00625_startsWith.sql new file mode 100644 index 00000000000..561ac90141f --- /dev/null +++ b/dbms/tests/queries/0_stateless/00625_startsWith.sql @@ -0,0 +1,2 @@ +SELECT startsWith(s, 'He') FROM (SELECT arrayJoin(['', 'H', 'He', 'Hellow', '3434', 'fffffffffdHe']) AS s) +SELECT startsWith(s, '') FROM (SELECT arrayJoin(['', 'h', 'hi']) AS s) diff --git a/dbms/tests/queries/0_stateless/00626_endsWith.reference b/dbms/tests/queries/0_stateless/00626_endsWith.reference new file mode 100644 index 00000000000..da88868d9a7 --- /dev/null +++ b/dbms/tests/queries/0_stateless/00626_endsWith.reference @@ -0,0 +1,9 @@ +0 +0 +1 +1 +0 +0 +1 +1 +1 diff --git a/dbms/tests/queries/0_stateless/00626_endsWith.sql b/dbms/tests/queries/0_stateless/00626_endsWith.sql new file mode 100644 index 00000000000..cbc882cbc78 --- /dev/null +++ b/dbms/tests/queries/0_stateless/00626_endsWith.sql @@ -0,0 +1,2 @@ +SELECT endsWith(s, 'ow') FROM (SELECT arrayJoin(['', 'o', 'ow', 'Hellow', '3434', 'owfffffffdHe']) AS s) +SELECT endsWith(s, '') FROM (SELECT arrayJoin(['', 'h', 'hi']) AS s)