Added tests for arrayIntersect.

This commit is contained in:
Nikolai Kochetov 2019-04-01 16:29:20 +03:00
parent e8a8da1a4f
commit cd7368dc6d
2 changed files with 9 additions and 0 deletions

View File

@ -0,0 +1,4 @@
['a']
[]
[1]
[]

View File

@ -0,0 +1,5 @@
SELECT arrayIntersect(['a', 'b', 'c'], ['a', 'a']);
SELECT arrayIntersect([1, 1], [2, 2]);
SELECT arrayIntersect([1, 1], [1, 2]);
SELECT arrayIntersect([1, 1, 1], [3], [2, 2, 2]);