Решение на Тесте карти от Марианна Владимирова
Обратно към всички решения
Към профила на Марианна Владимирова
Резултати
- 6 точки от тестове
- 0 бонус точки
- 6 точки общо
- 9 успешни тест(а)
- 7 неуспешни тест(а)
Код
Лог от изпълнението
EEEE.EEF........
======================================================================
ERROR: test_belote_deck (test.CardCollectionTest)
----------------------------------------------------------------------
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-1k2ob5g/test.py", line 174, in test_belote_deck
cards = [str(card) for card in solution.BeloteDeck()]
AttributeError: 'module' object has no attribute 'BeloteDeck'
======================================================================
ERROR: test_deck_add (test.CardCollectionTest)
----------------------------------------------------------------------
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-1k2ob5g/test.py", line 117, in test_deck_add
deck = solution.CardCollection()
TypeError: __init__() missing 1 required positional argument: 'collection'
======================================================================
ERROR: test_deck_draw (test.CardCollectionTest)
----------------------------------------------------------------------
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-1k2ob5g/test.py", line 142, in test_deck_draw
self.assertEqual(len(deck), 51)
TypeError: object of type 'CardCollection' has no len()
======================================================================
ERROR: test_deck_index (test.CardCollectionTest)
----------------------------------------------------------------------
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-1k2ob5g/test.py", line 154, in test_deck_index
deck = solution.CardCollection()
TypeError: __init__() missing 1 required positional argument: 'collection'
======================================================================
ERROR: test_deck_order (test.CardCollectionTest)
----------------------------------------------------------------------
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-1k2ob5g/test.py", line 129, in test_deck_order
deck = solution.CardCollection()
TypeError: __init__() missing 1 required positional argument: 'collection'
======================================================================
ERROR: test_sixtysix_deck (test.CardCollectionTest)
----------------------------------------------------------------------
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-1k2ob5g/test.py", line 178, in test_sixtysix_deck
cards = [str(card) for card in solution.SixtySixDeck()]
AttributeError: 'module' object has no attribute 'SixtySixDeck'
======================================================================
FAIL: test_standard_deck (test.CardCollectionTest)
----------------------------------------------------------------------
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-1k2ob5g/test.py", line 171, in test_standard_deck
self.assertEqual(STANDARD_DECK, cards)
AssertionError: Lists differ: ['King of Diamonds', 'Queen of... != ["Card <class 'solution.King'>...
First differing element 0:
King of Diamonds
Card <class 'solution.King'> of <class 'solution.Diamonds'>
Diff is 4446 characters long. Set self.maxDiff to None to see it.
----------------------------------------------------------------------
Ran 16 tests in 0.047s
FAILED (failures=1, errors=6)
История (4 версии и 4 коментара)
Марианна обнови решението на 24.03.2014 08:39 (преди над 10 години)
Марианна обнови решението на 26.03.2014 14:20 (преди над 10 години)
Марианна обнови решението на 26.03.2014 14:29 (преди над 10 години)
Марианна обнови решението на 26.03.2014 15:52 (преди над 10 години)