Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # -------- tasks/escher_tasks/task_2__ground_of_house.py -----------
- def house(plan):
- return 0
- # ----------- tests/test_escher_tasks/test_task_2__ground_of_house.py -----------
- from tasks.escher_tasks.task_2__ground_of_house import house
- def test_house():
- assert house('''
- 0000000
- ##00##0
- ######0
- ##00##0
- #0000#0
- ''') == 24 # up 1, down 4, left 0, right 5
- assert house('''0000000000
- #000##000#
- ##########
- ##000000##
- 0000000000
- ''') == 30
- assert house('''0000
- 0000
- #000
- ''') == 1
- assert house('''0000
- 0000
- ''') == 0
- assert house('''
- 0##0
- 0000
- #00#
- ''') == 12
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement