Решение на От ливадите до Лас Вегас (и назад) от Надежда Панделиева
Обратно към всички решения
Към профила на Надежда Панделиева
Резултати
- 5 точки от тестове
- 0 бонус точки
- 5 точки общо
- 8 успешни тест(а)
- 7 неуспешни тест(а)
Код
Лог от изпълнението
EE......EEE..EE
======================================================================
ERROR: test_correct_deck_init (test.TestBelot)
Test initialization with correct deck.
----------------------------------------------------------------------
Traceback (most recent call last):
File "/storage/deedee/data/rails/pyfmi-2022/releases/20221115154139/lib/language/python/runner.py", line 67, in thread
raise result
AttributeError: 'list' object has no attribute 'get_cards'
======================================================================
ERROR: test_correct_direction_and_players_deal (test.TestBelot)
Test dealing with correct direction and players.
----------------------------------------------------------------------
Traceback (most recent call last):
File "/storage/deedee/data/rails/pyfmi-2022/releases/20221115154139/lib/language/python/runner.py", line 67, in thread
raise result
AttributeError: 'list' object has no attribute 'get_cards'
======================================================================
ERROR: test_collecting_cards_before_dealing (test.TestGame)
Test collecting the cards before a new deal.
----------------------------------------------------------------------
Traceback (most recent call last):
File "/storage/deedee/data/rails/pyfmi-2022/releases/20221115154139/lib/language/python/runner.py", line 67, in thread
raise result
AttributeError: 'list' object has no attribute 'get_cards'
======================================================================
ERROR: test_dealing_ltr (test.TestGame)
Test dealing the cards left to right.
----------------------------------------------------------------------
Traceback (most recent call last):
File "/storage/deedee/data/rails/pyfmi-2022/releases/20221115154139/lib/language/python/runner.py", line 67, in thread
raise result
AttributeError: 'list' object has no attribute 'get_cards'
======================================================================
ERROR: test_dealing_rtl (test.TestGame)
Test dealing the cards right to left.
----------------------------------------------------------------------
Traceback (most recent call last):
File "/storage/deedee/data/rails/pyfmi-2022/releases/20221115154139/lib/language/python/runner.py", line 67, in thread
raise result
AttributeError: 'list' object has no attribute 'get_cards'
======================================================================
ERROR: test_correct_deck_init (test.TestPoker)
Test initialization with correct deck.
----------------------------------------------------------------------
Traceback (most recent call last):
File "/storage/deedee/data/rails/pyfmi-2022/releases/20221115154139/lib/language/python/runner.py", line 67, in thread
raise result
AttributeError: 'list' object has no attribute 'get_cards'
======================================================================
ERROR: test_correct_direction_and_players_deal (test.TestPoker)
Test dealing with correct direction and players.
----------------------------------------------------------------------
Traceback (most recent call last):
File "/storage/deedee/data/rails/pyfmi-2022/releases/20221115154139/lib/language/python/runner.py", line 67, in thread
raise result
AttributeError: 'list' object has no attribute 'get_cards'
----------------------------------------------------------------------
Ran 15 tests in 0.170s
FAILED (errors=7)
История (2 версии и 22 коментара)
Надежда обнови решението на 15.11.2022 06:08 (преди около 2 години)
Надежда обнови решението на 15.11.2022 14:52 (преди около 2 години)
дано неуспешните ми опити не са заради това, че тук default съм сложила да е лист, а не tuple
Не, това е ок.
Както и по-горе,
cards
е по-крато и също толкова описателно.не разбирам нуждата от две тестета. Едно ти е достатъчно.
чудя се тук дали да не е _deal_helper() тъй като на никого няма да му трябва метода то е за вътрешно ползване
Да. Още по темата - https://fmi.py-bg.net/tips/2
и дано, не е защото връщам cards вместо self.initial_cards
Точно така. В инструкциите пише
get_deck
да връщаDeck
, а неlist
. Коментирахме го и преди. Трябва да е простоreturn self.initial_cards
.:(