Решение на Шахматни фенове от Тина Томова
Обратно към всички решения
Към профила на Тина Томова
Резултати
- 6 точки от тестове
- 0 бонус точки
- 6 точки общо
- 11 успешни тест(а)
- 6 неуспешни тест(а)
Код
Лог от изпълнението
....F.......FEEEE
======================================================================
ERROR: test_basic_arithmetic (test.TestChessScore)
Test additiona and subtraction of ChessScores.
----------------------------------------------------------------------
Traceback (most recent call last):
File "/storage/deedee/data/rails/pyfmi-2022/releases/20221115154139/lib/language/python/runner.py", line 67, in thread
raise result
UnboundLocalError: local variable 'points' referenced before assignment
======================================================================
ERROR: test_comparison (test.TestChessScore)
Test correct comparison on a pair of scores.
----------------------------------------------------------------------
Traceback (most recent call last):
File "/storage/deedee/data/rails/pyfmi-2022/releases/20221115154139/lib/language/python/runner.py", line 67, in thread
raise result
UnboundLocalError: local variable 'points' referenced before assignment
======================================================================
ERROR: test_correct_mapping_of_pieces (test.TestChessScore)
Test correct mapping for each piece.
----------------------------------------------------------------------
Traceback (most recent call last):
File "/storage/deedee/data/rails/pyfmi-2022/releases/20221115154139/lib/language/python/runner.py", line 67, in thread
raise result
UnboundLocalError: local variable 'points' referenced before assignment
======================================================================
ERROR: test_correct_sum_of_pieces (test.TestChessScore)
Test correct sum for random pieces.
----------------------------------------------------------------------
Traceback (most recent call last):
File "/storage/deedee/data/rails/pyfmi-2022/releases/20221115154139/lib/language/python/runner.py", line 67, in thread
raise result
UnboundLocalError: local variable 'points' referenced before assignment
======================================================================
FAIL: test_get_white_score (test.TestChessPosition)
Test get_white_score.
----------------------------------------------------------------------
Traceback (most recent call last):
File "/storage/deedee/data/rails/pyfmi-2022/releases/20221115154139/lib/language/python/runner.py", line 67, in thread
raise result
AssertionError: 4 is not an instance of <class 'solution.ChessScore'>
======================================================================
FAIL: test_white_is_winning (test.TestChessPosition)
Test white_is_winning.
----------------------------------------------------------------------
Traceback (most recent call last):
File "/storage/deedee/data/rails/pyfmi-2022/releases/20221115154139/lib/language/python/runner.py", line 67, in thread
raise result
AssertionError: 4 is not an instance of <class 'solution.ChessScore'>
----------------------------------------------------------------------
Ran 17 tests in 0.164s
FAILED (failures=2, errors=4)
История (2 версии и 6 коментара)
Тина обнови решението на 28.11.2022 23:19 (преди почти 2 години)
Тина обнови решението на 29.11.2022 15:39 (преди почти 2 години)