Решение на Тесте карти от Георги Харизанов
Обратно към всички решения
Към профила на Георги Харизанов
Резултати
- 0 точки от тестове
- 0 бонус точки
- 0 точки общо
- 0 успешни тест(а)
- 16 неуспешни тест(а)
Код
Лог от изпълнението
EEEEEEEEEEEEEEEE
======================================================================
ERROR: test_belote_deck (test.CardCollectionTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/tmp/d20140407-19315-n8g6dj/test.py", line 109, in setUp
self.deck = [solution.Card(rank, suit) for rank in solution.RANKS.values()
AttributeError: 'module' object has no attribute 'RANKS'
======================================================================
ERROR: test_deck_add (test.CardCollectionTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/tmp/d20140407-19315-n8g6dj/test.py", line 109, in setUp
self.deck = [solution.Card(rank, suit) for rank in solution.RANKS.values()
AttributeError: 'module' object has no attribute 'RANKS'
======================================================================
ERROR: test_deck_draw (test.CardCollectionTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/tmp/d20140407-19315-n8g6dj/test.py", line 109, in setUp
self.deck = [solution.Card(rank, suit) for rank in solution.RANKS.values()
AttributeError: 'module' object has no attribute 'RANKS'
======================================================================
ERROR: test_deck_index (test.CardCollectionTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/tmp/d20140407-19315-n8g6dj/test.py", line 109, in setUp
self.deck = [solution.Card(rank, suit) for rank in solution.RANKS.values()
AttributeError: 'module' object has no attribute 'RANKS'
======================================================================
ERROR: test_deck_iteration (test.CardCollectionTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/tmp/d20140407-19315-n8g6dj/test.py", line 109, in setUp
self.deck = [solution.Card(rank, suit) for rank in solution.RANKS.values()
AttributeError: 'module' object has no attribute 'RANKS'
======================================================================
ERROR: test_deck_order (test.CardCollectionTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/tmp/d20140407-19315-n8g6dj/test.py", line 109, in setUp
self.deck = [solution.Card(rank, suit) for rank in solution.RANKS.values()
AttributeError: 'module' object has no attribute 'RANKS'
======================================================================
ERROR: test_sixtysix_deck (test.CardCollectionTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/tmp/d20140407-19315-n8g6dj/test.py", line 109, in setUp
self.deck = [solution.Card(rank, suit) for rank in solution.RANKS.values()
AttributeError: 'module' object has no attribute 'RANKS'
======================================================================
ERROR: test_standard_deck (test.CardCollectionTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/tmp/d20140407-19315-n8g6dj/test.py", line 109, in setUp
self.deck = [solution.Card(rank, suit) for rank in solution.RANKS.values()
AttributeError: 'module' object has no attribute 'RANKS'
======================================================================
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-n8g6dj/test.py", line 64, in test_all_card_instances
for rank in solution.RANKS.values():
AttributeError: 'module' object has no attribute 'RANKS'
======================================================================
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-n8g6dj/test.py", line 77, in test_all_cards_equal
for rank in solution.RANKS.values():
AttributeError: 'module' object has no attribute 'RANKS'
======================================================================
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-n8g6dj/test.py", line 89, in test_all_suits_ranks_equal
for rank in solution.RANKS.values():
AttributeError: 'module' object has no attribute 'RANKS'
======================================================================
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-n8g6dj/test.py", line 100, in test_all_to_string
for rank in solution.RANKS.values():
AttributeError: 'module' object has no attribute 'RANKS'
======================================================================
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-n8g6dj/test.py", line 71, in test_card_equals
aos1 = solution.Card(solution.RANKS["Ace"], solution.SUITS["Spades"])
AttributeError: 'module' object has no attribute 'RANKS'
======================================================================
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-n8g6dj/test.py", line 59, in test_card_instance
aos = solution.Card(solution.RANKS["Ace"], solution.SUITS["Spades"])
AttributeError: 'module' object has no attribute 'RANKS'
======================================================================
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-n8g6dj/test.py", line 84, in test_suit_rank_equals
aos = solution.Card(solution.RANKS["Ace"], solution.SUITS["Spades"])
AttributeError: 'module' object has no attribute 'RANKS'
======================================================================
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-n8g6dj/test.py", line 96, in test_to_string
aos = solution.Card(solution.RANKS["Ace"], solution.SUITS["Spades"])
AttributeError: 'module' object has no attribute 'RANKS'
----------------------------------------------------------------------
Ran 16 tests in 0.009s
FAILED (errors=16)
История (1 версия и 1 коментар)
Георги обнови решението на 26.03.2014 16:53 (преди над 10 години)