tests for h3ExactEdgeLengthKm

This commit is contained in:
bharatnc 2022-01-13 23:40:46 -08:00
parent 905d4abdd6
commit b8b9b16adb
2 changed files with 45 additions and 0 deletions

View File

@ -0,0 +1,16 @@
489.55559989912314
192.39078306095627
66.91913220366439
1263.6096633631134
480.7440319163875
195.44963163407317
1263.6096633631118
461.80697194406935
190.08769842412468
1263.6096633631123
465.41972260404145
64.81970466298482
1263.6096633631116
69.63641611246636
195.6274718146093
67.66085681290775

View File

@ -0,0 +1,29 @@
-- Tags: no-fasttest
DROP TABLE IF EXISTS h3_indexes;
CREATE TABLE h3_indexes (h3_index UInt64) ENGINE = Memory;
-- Test h3 indices selected from original test fixture: https://github.com/uber/h3/blob/master/src/apps/testapps/testH3CellAreaExhaustive.c
INSERT INTO h3_indexes VALUES (1298057039473278975);
INSERT INTO h3_indexes VALUES (1370114633511206911);
INSERT INTO h3_indexes VALUES (1442172227549134847);
INSERT INTO h3_indexes VALUES (1514229821587062783);
INSERT INTO h3_indexes VALUES (1232301846085763071);
INSERT INTO h3_indexes VALUES (1304359440123691007);
INSERT INTO h3_indexes VALUES (1376417034161618943);
INSERT INTO h3_indexes VALUES (1448474628199546879);
INSERT INTO h3_indexes VALUES (1598506838100279295);
INSERT INTO h3_indexes VALUES (1238219417666453503);
INSERT INTO h3_indexes VALUES (1310277011704381439);
INSERT INTO h3_indexes VALUES (1382334605742309375);
INSERT INTO h3_indexes VALUES (1458182628678041599);
INSERT INTO h3_indexes VALUES (1530240222715969535);
INSERT INTO h3_indexes VALUES (1602297816753897471);
INSERT INTO h3_indexes VALUES (1242009915283734527);
SELECT h3ExactEdgeLengthKm(h3_index) FROM h3_indexes ORDER BY h3_index;
DROP TABLE h3_indexes;