Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # ------- tasks/escher_tasks/task_3__navigation.py -----------------
- def navigation(seaside):
- return 0
- # ------------- tests/test_escher_tasks/test_task_3__navigation.py ------------------------------------
- from tasks.escher_tasks.task_3__navigation import navigation
- def test_navigation():
- assert navigation([['Y', 0, 0, 0, 'C'],
- [0, 0, 0, 0, 0],
- [0, 0, 0, 0, 0],
- ['M', 0, 0, 0, 'S']]) == 11
- assert navigation([[0, 0, 'C'],
- [0, 'S', 0],
- ['M', 'Y', 0]]) == 4
- assert navigation([[0, 0, 0, 0, 0, 0, 0],
- [0, 0, 0, 'M', 0, 'S', 0],
- [0, 0, 0, 0, 0, 0, 0],
- [0, 0, 0, 'C', 0, 0, 0],
- [0, 'Y', 0, 0, 0, 0, 0],
- [0, 0, 0, 0, 0, 0, 0]]) == 9
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement