add tests

This commit is contained in:
万康 2021-05-11 12:18:11 +08:00
parent fa96613aeb
commit 41e576ceab
2 changed files with 29 additions and 0 deletions

View 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]

View 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));