Решение на Четири функции от Радослав Рачев
Обратно към всички решения
Към профила на Радослав Рачев
Резултати
- 5 точки от тестове
- 0 бонус точки
- 5 точки общо
- 17 успешни тест(а)
- 3 неуспешни тест(а)
Код
Лог от изпълнението
...........FFF......
======================================================================
FAIL: test_iterate_out_of_order_calls (test.SecondHomeworkTests)
----------------------------------------------------------------------
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/d20130408-29081-156ls5w/test.py", line 53, in test_iterate_out_of_order_calls
self.assertEqual(1 * 'eggs', f0('eggs'))
AssertionError: 'eggs' != 'eggseggseggseggseggseggseggseggs'
- eggs
+ eggseggseggseggseggseggseggseggs
======================================================================
FAIL: test_iterate_out_of_order_calls_again (test.SecondHomeworkTests)
----------------------------------------------------------------------
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/d20130408-29081-156ls5w/test.py", line 53, in test_iterate_out_of_order_calls
self.assertEqual(1 * 'eggs', f0('eggs'))
AssertionError: 'eggs' != 'eggseggseggseggseggseggseggseggs'
- eggs
+ eggseggseggseggseggseggseggseggs
======================================================================
FAIL: test_iterate_out_of_order_calls_yet_again (test.SecondHomeworkTests)
----------------------------------------------------------------------
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/d20130408-29081-156ls5w/test.py", line 53, in test_iterate_out_of_order_calls
self.assertEqual(1 * 'eggs', f0('eggs'))
AssertionError: 'eggs' != 'eggseggseggseggseggseggseggseggs'
- eggs
+ eggseggseggseggseggseggseggseggs
----------------------------------------------------------------------
Ran 20 tests in 0.016s
FAILED (failures=3)
История (3 версии и 2 коментара)
Радослав обнови решението на 14.03.2013 23:22 (преди над 11 години)
Радослав обнови решението на 14.03.2013 23:35 (преди над 11 години)
Радослав обнови решението на 14.03.2013 23:46 (преди над 11 години)