Решение на Пет функции от Марианна Владимирова
Обратно към всички решения
Към профила на Марианна Владимирова
Резултати
- 6 точки от тестове
- 0 бонус точки
- 6 точки общо
- 9 успешни тест(а)
- 7 неуспешни тест(а)
Код
Лог от изпълнението
EEEE.........EEE
======================================================================
ERROR: test_list_of_latin_anagrams (test.TestAnagrams)
----------------------------------------------------------------------
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/d20140319-21201-cffned/test.py", line 109, in test_list_of_latin_anagrams
set(map(frozenset, solution.anagrams(words))))
AttributeError: 'module' object has no attribute 'anagrams'
======================================================================
ERROR: test_with_different_cases (test.TestAnagrams)
----------------------------------------------------------------------
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/d20140319-21201-cffned/test.py", line 125, in test_with_different_cases
set(map(frozenset, solution.anagrams(words))))
AttributeError: 'module' object has no attribute 'anagrams'
======================================================================
ERROR: test_with_different_symbols (test.TestAnagrams)
----------------------------------------------------------------------
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/d20140319-21201-cffned/test.py", line 135, in test_with_different_symbols
set(map(frozenset, solution.anagrams(words))))
AttributeError: 'module' object has no attribute 'anagrams'
======================================================================
ERROR: test_with_list_of_cyrilic_anagrams (test.TestAnagrams)
----------------------------------------------------------------------
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/d20140319-21201-cffned/test.py", line 117, in test_with_list_of_cyrilic_anagrams
set(map(frozenset, solution.anagrams(words))))
AttributeError: 'module' object has no attribute 'anagrams'
======================================================================
ERROR: test_sort_by_empty (test.TestSortBy)
----------------------------------------------------------------------
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/d20140319-21201-cffned/test.py", line 44, in test_sort_by_empty
self.assertEqual([], solution.sort_by(lambda x, y: x - y, []))
AttributeError: 'module' object has no attribute 'sort_by'
======================================================================
ERROR: test_sort_by_one_element (test.TestSortBy)
----------------------------------------------------------------------
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/d20140319-21201-cffned/test.py", line 57, in test_sort_by_one_element
self.assertEqual([1], solution.sort_by(lambda x, y: x - y, [1]))
AttributeError: 'module' object has no attribute 'sort_by'
======================================================================
ERROR: test_sort_by_simple_test (test.TestSortBy)
----------------------------------------------------------------------
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/d20140319-21201-cffned/test.py", line 54, in test_sort_by_simple_test
solution.sort_by(lambda x, y: x % 2 - y % 2, [0, 1, 2, 3, 4, 5]))
AttributeError: 'module' object has no attribute 'sort_by'
----------------------------------------------------------------------
Ran 16 tests in 0.014s
FAILED (errors=7)
История (10 версии и 3 коментара)
Марианна обнови решението на 17.03.2014 14:36 (преди над 10 години)
Марианна обнови решението на 17.03.2014 15:51 (преди над 10 години)
Марианна обнови решението на 18.03.2014 15:47 (преди над 10 години)
Марианна обнови решението на 18.03.2014 17:44 (преди над 10 години)
Марианна обнови решението на 18.03.2014 17:45 (преди над 10 години)
Марианна обнови решението на 18.03.2014 17:51 (преди над 10 години)
Марианна обнови решението на 18.03.2014 18:56 (преди над 10 години)
Марианна обнови решението на 18.03.2014 19:43 (преди над 10 години)
Марианна обнови решението на 19.03.2014 09:58 (преди над 10 години)
Марианна обнови решението на 19.03.2014 10:25 (преди над 10 години)