Решение на Тесте карти от Иван Латунов
Обратно към всички решения
Към профила на Иван Латунов
Резултати
- 0 точки от тестове
- 0 бонус точки
- 0 точки общо
- 0 успешни тест(а)
- 16 неуспешни тест(а)
Код
Лог от изпълнението
EEEEEEEEEEEEEEEE
======================================================================
ERROR: test_belote_deck (test.CardCollectionTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/tmp/d20140407-19315-bolpzy/test.py", line 109, in setUp
self.deck = [solution.Card(rank, suit) for rank in solution.RANKS.values()
File "/tmp/d20140407-19315-bolpzy/test.py", line 110, in <listcomp>
for suit in solution.SUITS.values()]
File "/tmp/d20140407-19315-bolpzy/solution.py", line 61, in __init__
self.rank = rank
AttributeError: can't set attribute
======================================================================
ERROR: test_deck_add (test.CardCollectionTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/tmp/d20140407-19315-bolpzy/test.py", line 109, in setUp
self.deck = [solution.Card(rank, suit) for rank in solution.RANKS.values()
File "/tmp/d20140407-19315-bolpzy/test.py", line 110, in <listcomp>
for suit in solution.SUITS.values()]
File "/tmp/d20140407-19315-bolpzy/solution.py", line 61, in __init__
self.rank = rank
AttributeError: can't set attribute
======================================================================
ERROR: test_deck_draw (test.CardCollectionTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/tmp/d20140407-19315-bolpzy/test.py", line 109, in setUp
self.deck = [solution.Card(rank, suit) for rank in solution.RANKS.values()
File "/tmp/d20140407-19315-bolpzy/test.py", line 110, in <listcomp>
for suit in solution.SUITS.values()]
File "/tmp/d20140407-19315-bolpzy/solution.py", line 61, in __init__
self.rank = rank
AttributeError: can't set attribute
======================================================================
ERROR: test_deck_index (test.CardCollectionTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/tmp/d20140407-19315-bolpzy/test.py", line 109, in setUp
self.deck = [solution.Card(rank, suit) for rank in solution.RANKS.values()
File "/tmp/d20140407-19315-bolpzy/test.py", line 110, in <listcomp>
for suit in solution.SUITS.values()]
File "/tmp/d20140407-19315-bolpzy/solution.py", line 61, in __init__
self.rank = rank
AttributeError: can't set attribute
======================================================================
ERROR: test_deck_iteration (test.CardCollectionTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/tmp/d20140407-19315-bolpzy/test.py", line 109, in setUp
self.deck = [solution.Card(rank, suit) for rank in solution.RANKS.values()
File "/tmp/d20140407-19315-bolpzy/test.py", line 110, in <listcomp>
for suit in solution.SUITS.values()]
File "/tmp/d20140407-19315-bolpzy/solution.py", line 61, in __init__
self.rank = rank
AttributeError: can't set attribute
======================================================================
ERROR: test_deck_order (test.CardCollectionTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/tmp/d20140407-19315-bolpzy/test.py", line 109, in setUp
self.deck = [solution.Card(rank, suit) for rank in solution.RANKS.values()
File "/tmp/d20140407-19315-bolpzy/test.py", line 110, in <listcomp>
for suit in solution.SUITS.values()]
File "/tmp/d20140407-19315-bolpzy/solution.py", line 61, in __init__
self.rank = rank
AttributeError: can't set attribute
======================================================================
ERROR: test_sixtysix_deck (test.CardCollectionTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/tmp/d20140407-19315-bolpzy/test.py", line 109, in setUp
self.deck = [solution.Card(rank, suit) for rank in solution.RANKS.values()
File "/tmp/d20140407-19315-bolpzy/test.py", line 110, in <listcomp>
for suit in solution.SUITS.values()]
File "/tmp/d20140407-19315-bolpzy/solution.py", line 61, in __init__
self.rank = rank
AttributeError: can't set attribute
======================================================================
ERROR: test_standard_deck (test.CardCollectionTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/tmp/d20140407-19315-bolpzy/test.py", line 109, in setUp
self.deck = [solution.Card(rank, suit) for rank in solution.RANKS.values()
File "/tmp/d20140407-19315-bolpzy/test.py", line 110, in <listcomp>
for suit in solution.SUITS.values()]
File "/tmp/d20140407-19315-bolpzy/solution.py", line 61, in __init__
self.rank = rank
AttributeError: can't set attribute
======================================================================
ERROR: test_all_card_instances (test.CardTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "lib/language/python/runner.py", line 60, in thread
raise it.exc_info[1]
File "lib/language/python/runner.py", line 48, in run
self.result = func(*args, **kwargs)
File "/tmp/d20140407-19315-bolpzy/test.py", line 66, in test_all_card_instances
card = solution.Card(rank, suit)
File "/tmp/d20140407-19315-bolpzy/solution.py", line 61, in __init__
self.rank = rank
AttributeError: can't set attribute
======================================================================
ERROR: test_all_cards_equal (test.CardTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "lib/language/python/runner.py", line 60, in thread
raise it.exc_info[1]
File "lib/language/python/runner.py", line 48, in run
self.result = func(*args, **kwargs)
File "/tmp/d20140407-19315-bolpzy/test.py", line 79, in test_all_cards_equal
card1 = solution.Card(rank, suit)
File "/tmp/d20140407-19315-bolpzy/solution.py", line 61, in __init__
self.rank = rank
AttributeError: can't set attribute
======================================================================
ERROR: test_all_suits_ranks_equal (test.CardTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "lib/language/python/runner.py", line 60, in thread
raise it.exc_info[1]
File "lib/language/python/runner.py", line 48, in run
self.result = func(*args, **kwargs)
File "/tmp/d20140407-19315-bolpzy/test.py", line 91, in test_all_suits_ranks_equal
card = solution.Card(rank, suit)
File "/tmp/d20140407-19315-bolpzy/solution.py", line 61, in __init__
self.rank = rank
AttributeError: can't set attribute
======================================================================
ERROR: test_all_to_string (test.CardTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "lib/language/python/runner.py", line 60, in thread
raise it.exc_info[1]
File "lib/language/python/runner.py", line 48, in run
self.result = func(*args, **kwargs)
File "/tmp/d20140407-19315-bolpzy/test.py", line 102, in test_all_to_string
card = solution.Card(rank, suit)
File "/tmp/d20140407-19315-bolpzy/solution.py", line 61, in __init__
self.rank = rank
AttributeError: can't set attribute
======================================================================
ERROR: test_card_equals (test.CardTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "lib/language/python/runner.py", line 60, in thread
raise it.exc_info[1]
File "lib/language/python/runner.py", line 48, in run
self.result = func(*args, **kwargs)
File "/tmp/d20140407-19315-bolpzy/test.py", line 71, in test_card_equals
aos1 = solution.Card(solution.RANKS["Ace"], solution.SUITS["Spades"])
File "/tmp/d20140407-19315-bolpzy/solution.py", line 61, in __init__
self.rank = rank
AttributeError: can't set attribute
======================================================================
ERROR: test_card_instance (test.CardTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "lib/language/python/runner.py", line 60, in thread
raise it.exc_info[1]
File "lib/language/python/runner.py", line 48, in run
self.result = func(*args, **kwargs)
File "/tmp/d20140407-19315-bolpzy/test.py", line 59, in test_card_instance
aos = solution.Card(solution.RANKS["Ace"], solution.SUITS["Spades"])
File "/tmp/d20140407-19315-bolpzy/solution.py", line 61, in __init__
self.rank = rank
AttributeError: can't set attribute
======================================================================
ERROR: test_suit_rank_equals (test.CardTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "lib/language/python/runner.py", line 60, in thread
raise it.exc_info[1]
File "lib/language/python/runner.py", line 48, in run
self.result = func(*args, **kwargs)
File "/tmp/d20140407-19315-bolpzy/test.py", line 84, in test_suit_rank_equals
aos = solution.Card(solution.RANKS["Ace"], solution.SUITS["Spades"])
File "/tmp/d20140407-19315-bolpzy/solution.py", line 61, in __init__
self.rank = rank
AttributeError: can't set attribute
======================================================================
ERROR: test_to_string (test.CardTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "lib/language/python/runner.py", line 60, in thread
raise it.exc_info[1]
File "lib/language/python/runner.py", line 48, in run
self.result = func(*args, **kwargs)
File "/tmp/d20140407-19315-bolpzy/test.py", line 96, in test_to_string
aos = solution.Card(solution.RANKS["Ace"], solution.SUITS["Spades"])
File "/tmp/d20140407-19315-bolpzy/solution.py", line 61, in __init__
self.rank = rank
AttributeError: can't set attribute
----------------------------------------------------------------------
Ran 16 tests in 0.011s
FAILED (errors=16)
История (2 версии и 0 коментара)
Иван обнови решението на 26.03.2014 16:48 (преди над 10 години)
Иван обнови решението на 26.03.2014 16:58 (преди над 10 години)