mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-23 08:02:02 +00:00
Add tests
This commit is contained in:
parent
23616c773a
commit
f7019cf589
@ -0,0 +1 @@
|
||||
[[(0,0),(0,5),(5,5),(5,0),(0,0)]]
|
1
tests/queries/0_stateless/01300_polygon_convex_hull.sql
Normal file
1
tests/queries/0_stateless/01300_polygon_convex_hull.sql
Normal file
@ -0,0 +1 @@
|
||||
select polygonConvexHull([[[(0, 0), (0, 5), (5, 5), (5, 0), (2, 3)]]])
|
@ -0,0 +1,2 @@
|
||||
0
|
||||
1
|
2
tests/queries/0_stateless/01301_polygons_within.sql
Normal file
2
tests/queries/0_stateless/01301_polygons_within.sql
Normal file
@ -0,0 +1,2 @@
|
||||
select polygonsWithin([[[(0, 0),(0, 3),(1, 2.9),(2, 2.6),(2.6, 2),(2.9, 1),(3, 0),(0, 0)]]], [[[(1, 1),(1, 4),(4, 4),(4, 1),(1, 1)]]]);
|
||||
select polygonsWithin([[[(2, 2), (2, 3), (3, 3), (3, 2)]]], [[[(1, 1),(1, 4),(4, 4),(4, 1),(1, 1)]]])
|
@ -0,0 +1,2 @@
|
||||
0
|
||||
1.2727922061357855
|
3
tests/queries/0_stateless/01302_polygons_distance.sql
Normal file
3
tests/queries/0_stateless/01302_polygons_distance.sql
Normal file
@ -0,0 +1,3 @@
|
||||
select polygonsDistance([[[(0, 0),(0, 3),(1, 2.9),(2, 2.6),(2.6, 2),(2.9, 1),(3, 0),(0, 0)]]], [[[(1, 1),(1, 4),(4, 4),(4, 1),(1, 1)]]]);
|
||||
|
||||
select polygonsDistance([[[(0, 0), (0, 0.1), (0.1, 0.1), (0.1, 0)]]], [[[(1, 1),(1, 4),(4, 4),(4, 1),(1, 1)]]])
|
@ -0,0 +1,2 @@
|
||||
0
|
||||
1
|
2
tests/queries/0_stateless/01303_polygons_equals.sql
Normal file
2
tests/queries/0_stateless/01303_polygons_equals.sql
Normal file
@ -0,0 +1,2 @@
|
||||
select polygonsEquals([[[(0, 0),(0, 3),(1, 2.9),(2, 2.6),(2.6, 2),(2.9, 1),(3, 0),(0, 0)]]], [[[(1, 1),(1, 4),(4, 4),(4, 1),(1, 1)]]]);
|
||||
select polygonsEquals([[[(1, 1),(1, 4),(4, 4),(4, 1)]]], [[[(1, 1),(1, 4),(4, 4),(4, 1),(1, 1)]]])
|
@ -0,0 +1 @@
|
||||
[[[(1,2.9),(1,1),(2.9,1),(3,0),(0,0),(0,3),(1,2.9)]],[[(1,2.9),(1,4),(4,4),(4,1),(2.9,1),(2.6,2),(2,2.6),(1,2.9)]]]
|
@ -0,0 +1 @@
|
||||
select polygonsSymDifference([[[(0, 0),(0, 3),(1, 2.9),(2, 2.6),(2.6, 2),(2.9, 1),(3, 0),(0, 0)]]], [[[(1, 1),(1, 4),(4, 4),(4, 1),(1, 1)]]])
|
1
tests/queries/0_stateless/01305_polygons_union.reference
Normal file
1
tests/queries/0_stateless/01305_polygons_union.reference
Normal file
@ -0,0 +1 @@
|
||||
[[[(1,2.9),(1,4),(4,4),(4,1),(2.9,1),(3,0),(0,0),(0,3),(1,2.9)]]]
|
1
tests/queries/0_stateless/01305_polygons_union.sql
Normal file
1
tests/queries/0_stateless/01305_polygons_union.sql
Normal file
@ -0,0 +1 @@
|
||||
select polygonsUnion([[[(0, 0),(0, 3),(1, 2.9),(2, 2.6),(2.6, 2),(2.9, 1),(3, 0),(0, 0)]]], [[[(1, 1),(1, 4),(4, 4),(4, 1),(1, 1)]]])
|
@ -0,0 +1 @@
|
||||
[[[(1,2.9),(2,2.6),(2.6,2),(2.9,1),(1,1),(1,2.9)]]]
|
@ -0,0 +1 @@
|
||||
select polygonsIntersection([[[(0, 0),(0, 3),(1, 2.9),(2, 2.6),(2.6, 2),(2.9, 1),(3, 0),(0, 0)]]], [[[(1, 1),(1, 4),(4, 4),(4, 1),(1, 1)]]])
|
@ -0,0 +1 @@
|
||||
20
|
1
tests/queries/0_stateless/01307_polygon_perimeter.sql
Normal file
1
tests/queries/0_stateless/01307_polygon_perimeter.sql
Normal file
@ -0,0 +1 @@
|
||||
select polygonPerimeter([[[(0, 0), (0., 5), (5, 5), (5., 0)]]])
|
1
tests/queries/0_stateless/01308_polygon_area.reference
Normal file
1
tests/queries/0_stateless/01308_polygon_area.reference
Normal file
@ -0,0 +1 @@
|
||||
25
|
1
tests/queries/0_stateless/01308_polygon_area.sql
Normal file
1
tests/queries/0_stateless/01308_polygon_area.sql
Normal file
@ -0,0 +1 @@
|
||||
select polygonArea([[[(0, 0), (0., 5), (5, 5), (5., 0)]]])
|
Loading…
Reference in New Issue
Block a user