Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
ajfriend committed Sep 27, 2024
1 parent eb162d6 commit 7cb8f12
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/test_h3.py
Original file line number Diff line number Diff line change
Expand Up @@ -473,18 +473,18 @@ def test_child_pos2():


def test_cell_to_children_size():
h = '8053fffffffffff' # hexagon
h = '8053fffffffffff' # hexagon
for r in range(16):
assert h3.cell_to_children_size(h, r) == 7**r


def test_cell_to_children_size2():
cells = h3.get_res0_cells()

for r in range(16):
total_cells = 120*(7**r) + 2
total_cells = 120 * (7**r) + 2

assert total_cells == sum(
h3.cell_to_children_size(h, r)
for h in cells
)

0 comments on commit 7cb8f12

Please sign in to comment.