Skip to content

Commit 80c01d4

Browse files
authored
add basic test script (#5)
1 parent d5bf327 commit 80c01d4

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

.github/workflows/test-linux.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,3 +49,7 @@ jobs:
4949
- name: Build
5050
working-directory: build
5151
run: make
52+
53+
- name: Test SQLite3
54+
working-directory: build
55+
run: sqlite3 -echo -bail < "../test/test.sql"

test/test.sql

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
.load ./libh3ext
2+
select printf('%x', latLngToCell(0,0,0));
3+
select printf('%f', cellToLat(latLngToCell(0,0,0)));
4+
select printf('%f', cellToLng(latLngToCell(0,0,0)));
5+
select printf('%x', cellToParent(latLngToCell(0,0,5), 4));
6+
select printf('%d', getResolution(latLngToCell(0,0,5)));
7+

0 commit comments

Comments
 (0)