Skip to content

Commit

Permalink
add some reporting for missing cells
Browse files Browse the repository at this point in the history
  • Loading branch information
gadfort committed Feb 15, 2024
1 parent 9d5be78 commit 7b00fda
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions lambdalib/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,17 @@ def check(outputpath, la_lib='stdlib'):

if lambda_cells == lib_cells:
return True

missing_cells = lambda_cells - lib_cells
extra_cells = lib_cells - lambda_cells

if missing_cells:
for cell in missing_cells:
print(f'Missing: {cell}')
if extra_cells:
for cell in extra_cells:
print(f'Excess cell: {cell}')

return False


Expand Down

0 comments on commit 7b00fda

Please sign in to comment.