Added a test

This commit is contained in:
Alexey Milovidov 2019-02-10 00:18:33 +03:00
parent ad56a42cf4
commit 25e7e63207
2 changed files with 44 additions and 0 deletions

View File

@ -0,0 +1,40 @@
[0,0,0]
[1,1,1]
[2,2,2]
[3,3,3]
[4,4,4]
[5,5,5]
[6,6,6]
[7,7,7]
[8,8,8]
[9,9,9]
[]
['Hello']
['Hello','Hello']
['Hello','Hello','Hello']
['Hello','Hello','Hello','Hello']
['Hello','Hello','Hello','Hello','Hello']
['Hello','Hello','Hello','Hello','Hello','Hello']
['Hello','Hello','Hello','Hello','Hello','Hello','Hello']
['Hello','Hello','Hello','Hello','Hello','Hello','Hello','Hello']
['Hello','Hello','Hello','Hello','Hello','Hello','Hello','Hello','Hello']
[]
['Hello']
[NULL,NULL]
[]
[NULL]
['Hello','Hello']
[]
['Hello']
[NULL,NULL]
[]
[]
[[]]
[[],[]]
[[],[],[]]
[[],[],[],[]]
[[],[],[],[],[]]
[[],[],[],[],[],[]]
[[],[],[],[],[],[],[]]
[[],[],[],[],[],[],[],[]]
[[],[],[],[],[],[],[],[],[]]

View File

@ -0,0 +1,4 @@
SELECT arrayWithConstant(3, number) FROM numbers(10);
SELECT arrayWithConstant(number, 'Hello') FROM numbers(10);
SELECT arrayWithConstant(number % 3, number % 2 ? 'Hello' : NULL) FROM numbers(10);
SELECT arrayWithConstant(number, []) FROM numbers(10);