Skip to content

Commit

Permalink
Greenkeeping: Update prettier, rollup, tsd-jsdoc
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicholas Rabinowitz committed Jan 21, 2020
1 parent d7f9686 commit 6dc3dab
Show file tree
Hide file tree
Showing 2 changed files with 199 additions and 79 deletions.
31 changes: 26 additions & 5 deletions test/h3core.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -529,7 +529,11 @@ test('polyfill - With Hole', assert => {
[37.7835871999971715, -122.5247187000021967],
[37.8151571999998453, -122.4798767000009008]
],
[[37.7869802, -122.4471197], [37.7664102, -122.4590777], [37.7710682, -122.4137097]]
[
[37.7869802, -122.4471197],
[37.7664102, -122.4590777],
[37.7710682, -122.4137097]
]
],
9
);
Expand All @@ -548,7 +552,11 @@ test('polyfill - With Hole GeoJson', assert => {
[-122.5247187000021967, 37.7835871999971715],
[-122.4798767000009008, 37.8151571999998453]
],
[[-122.4471197, 37.7869802], [-122.4590777, 37.7664102], [-122.4137097, 37.7710682]]
[
[-122.4471197, 37.7869802],
[-122.4590777, 37.7664102],
[-122.4137097, 37.7710682]
]
],
9,
true
Expand All @@ -568,8 +576,16 @@ test('polyfill - With Two Holes', assert => {
[37.7835871999971715, -122.5247187000021967],
[37.8151571999998453, -122.4798767000009008]
],
[[37.7869802, -122.4471197], [37.7664102, -122.4590777], [37.7710682, -122.4137097]],
[[37.747976, -122.490025], [37.73155, -122.503758], [37.72544, -122.452603]]
[
[37.7869802, -122.4471197],
[37.7664102, -122.4590777],
[37.7710682, -122.4137097]
],
[
[37.747976, -122.490025],
[37.73155, -122.503758],
[37.72544, -122.452603]
]
],
9
);
Expand All @@ -584,7 +600,12 @@ test('polyfill - BBox corners (#67)', assert => {
south: -34.30714385628804,
west: -57.65625
};
const vertices = [[north, east], [north, west], [south, west], [south, east]];
const vertices = [
[north, east],
[north, west],
[south, west],
[south, east]
];
const hexagons = h3core.polyfill(vertices, 7);

assert.equal(hexagons.length, 4499, 'got the expected number of hexagons back');
Expand Down
Loading

0 comments on commit 6dc3dab

Please sign in to comment.