Advertisement
fkudinov

4. Нетривіальне мінімальне значення / Задачі на Python / Острів Ешера

May 7th, 2024
141
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.50 KB | Source Code | 0 0
  1. #   -----------   tasks/escher_tasks/task_4__stone_wall.py   --------------
  2.  
  3. def stone_wall(wall):
  4.     return 0
  5.  
  6.  
  7. # --------------   tests/test_escher_tasks/test_task_4__stone_wall.py ---------------
  8.  
  9. from tasks.escher_tasks.task_4__stone_wall import stone_wall
  10.  
  11.  
  12. def test_stone_wall():
  13.  
  14.     assert stone_wall('''
  15. ##########
  16. ####0##0##
  17. 00##0###00
  18. ''') == 4
  19.  
  20.     assert stone_wall('''
  21. #00#######
  22. #######0##
  23. 00######00
  24. ''') == 1
  25.  
  26.     assert stone_wall('''
  27. #####
  28. #####
  29. #####
  30. ''') == 0
  31.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement