mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-01 20:12:02 +00:00
add tests
This commit is contained in:
parent
fa96613aeb
commit
41e576ceab
13
tests/queries/0_stateless/01866_bitposition.reference
Normal file
13
tests/queries/0_stateless/01866_bitposition.reference
Normal file
@ -0,0 +1,13 @@
|
||||
[]
|
||||
[0]
|
||||
[0,1,2,3,4,5,6,7]
|
||||
[0,1,2,3,4,5,6]
|
||||
[7]
|
||||
[]
|
||||
[0]
|
||||
[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15]
|
||||
[0,2,3,4,5,6,7,8,9,10,11,12,13,14]
|
||||
[15]
|
||||
[]
|
||||
[0]
|
||||
[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63]
|
16
tests/queries/0_stateless/01866_bitposition.sql
Normal file
16
tests/queries/0_stateless/01866_bitposition.sql
Normal file
@ -0,0 +1,16 @@
|
||||
select bitpositionToArray(0);
|
||||
select bitpositionToArray(1);
|
||||
select bitpositionToArray(-1);
|
||||
select bitpositionToArray(127);
|
||||
select bitpositionToArray(128);
|
||||
|
||||
select bitpositionToArray(toInt16(0));
|
||||
select bitpositionToArray(toInt16(1));
|
||||
select bitpositionToArray(toInt16(-1));
|
||||
select bitpositionToArray(toInt16(32765));
|
||||
select bitpositionToArray(toInt16(32768));
|
||||
|
||||
select bitpositionToArray(toInt64(0));
|
||||
select bitpositionToArray(toInt64(1));
|
||||
select bitpositionToArray(toInt64(-1));
|
||||
|
Loading…
Reference in New Issue
Block a user