add more tests

This commit is contained in:
sundy-li 2019-10-29 14:55:59 +08:00
parent 66ffec32f7
commit 00389a67a0
2 changed files with 6 additions and 0 deletions

View File

@ -1,3 +1,6 @@
1
1
1
0 0
0 0
0 0

View File

@ -1,3 +1,6 @@
SELECT range(100) == range(0, 100) and range(0, 100) == range(0, 100, 1);
SELECT distinct length(range(number, number + 100, 99)) == 2 FROM numbers(1000);
SELECT distinct length(range(number, number + 100, 100)) == 1 FROM numbers(1000);
SELECT range(0)[-1]; SELECT range(0)[-1];
SELECT range(0)[1]; SELECT range(0)[1];
SELECT range(number)[2] FROM system.numbers LIMIT 10; SELECT range(number)[2] FROM system.numbers LIMIT 10;