Skip to content

Commit

Permalink
test: test the island_perimeter function
Browse files Browse the repository at this point in the history
  • Loading branch information
R-HYTE committed Jun 27, 2024
1 parent f942a59 commit f59e93f
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions 0x09-island_perimeter/0-main.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#!/usr/bin/python3
"""
0-main
"""
island_perimeter = __import__('0-island_perimeter').island_perimeter

if __name__ == "__main__":
grid = [
[0, 0, 0, 0, 0, 0],
[0, 1, 0, 0, 0, 0],
[0, 1, 0, 0, 0, 0],
[0, 1, 1, 1, 0, 0],
[0, 0, 0, 0, 0, 0]
]
print(island_perimeter(grid))

0 comments on commit f59e93f

Please sign in to comment.