Add functional tests for hasTokenOrNull

This commit is contained in:
ltrk2 2023-08-04 13:03:15 -07:00
parent 06631f6a86
commit 0545622331
2 changed files with 8 additions and 0 deletions

View File

@ -1,2 +1,6 @@
0
\N
\N
0
\N
\N

View File

@ -2,6 +2,10 @@ SELECT hasTokenCaseInsensitive('K(G', ''); -- { serverError BAD_ARGUMENTS }
SELECT hasTokenCaseInsensitive('Hello', ''); -- { serverError BAD_ARGUMENTS }
SELECT hasTokenCaseInsensitive('', ''); -- { serverError BAD_ARGUMENTS }
SELECT hasTokenCaseInsensitive('', 'Hello');
SELECT hasTokenCaseInsensitiveOrNull('Hello', '');
SELECT hasTokenCaseInsensitiveOrNull('', '');
SELECT hasToken('Hello', ''); -- { serverError BAD_ARGUMENTS }
SELECT hasToken('', 'Hello');
SELECT hasToken('', ''); -- { serverError BAD_ARGUMENTS }
SELECT hasTokenOrNull('', '');
SELECT hasTokenOrNull('Hello', '');