- Коректно
- 6 успешни тест(а)
- 0 неуспешни тест(а)
...... ---------------------------------------------------------------------- Ran 6 tests in 0.040s OK
Срокът за предаване на решения е отминал
Нонограма (още японска кръстословица) е логическа игра, чиято цел е да разберете кои квадратчета трябва да се запълнят и кои не, като се взимат под внимание числата дадени по краищата на решетката.

За целта в ляво на всеки ред и в горната част на всяка колона има поредица от числа. Те указват бройката на последователните черни квадратчета съответно по хоризонтала и вертикала.
Например:
числата в първия ред 1 1 1 означават, че в този ред има 3 групи запълнени квадратчета. Всяка група се състои от по едно запълнено квадратче и всеки 2 групи са разделени с поне едно незапълнено квадратче
числата в първата колона 1 3 означават, че в тази колона има 2 групи запълнени квадратчет: първата група се състои от 1 запълнено квадратче, а втората група от 3 последователни запълнени квадратчета. Всяка група е разделена с поне едно незапълнено квадратче. Последователността на числата указва последователността на групите.
Да напишем валидатор на нонограми(функция validate_nonogram), който по
дадена нонограма да казва дали е правилно решена, или не.
матрица(списък от списъци), която ще представлява решетката от запълнени и незапълнени квадратчета
речник с два ключа 'rows' и 'columns', като за всеки ключ имаме
списък от списъци със ключовете в даден ред/колона
>>> nonogram = [[' ', ' ', ' ', 'X', ' '],
[' ', 'X', 'X', 'X', 'X'],
['X', 'X', 'X', ' ', 'X'],
['X', 'X', 'X', ' ', ' '],
['X', ' ', ' ', ' ', ' ']]
>>>
>>> keys = {'rows': [[1], [4], [3, 1], [3], [1]],
'columns': [[3], [3], [3], [2], [2]]}
>>>
>>> validate_nonogram(nonogram, keys)
True
nonogram е един ред от нонограмата' ' означава незапълнено квадратче'X' означава запълнено квадратчеkeys['rows'][0] съдържа всички ключове от първия редkeys['columns'][3] съдържа всички ключове от четвъртата колона

Тук може да си поиграете и нарисувате
свои нонограми, които директно се превръщат в тестове(е да, играчка си е да
препишете голяма нонограма, но е яко
).
...... ---------------------------------------------------------------------- Ran 6 tests in 0.040s OK
..E...
======================================================================
ERROR: test_mandatory_empty_square_between_groups (test.TestValidateNonogram)
----------------------------------------------------------------------
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/d20140423-11348-94ox0k/test.py", line 50, in test_mandatory_empty_square_between_groups
self.assertFalse(solution.validate_nonogram(nonogram, keys))
File "/tmp/d20140423-11348-94ox0k/solution.py", line 3, in validate_nonogram
trans_nonogram = matrixTranspose(nonogram)
File "/tmp/d20140423-11348-94ox0k/solution.py", line 24, in matrixTranspose
transposed[t][tt] = anArray[tt][t]
IndexError: list index out of range
----------------------------------------------------------------------
Ran 6 tests in 0.009s
FAILED (errors=1)
...... ---------------------------------------------------------------------- Ran 6 tests in 0.043s OK
...... ---------------------------------------------------------------------- Ran 6 tests in 0.039s OK
...... ---------------------------------------------------------------------- Ran 6 tests in 0.041s OK
...... ---------------------------------------------------------------------- Ran 6 tests in 0.004s OK
...... ---------------------------------------------------------------------- Ran 6 tests in 0.045s OK
...... ---------------------------------------------------------------------- Ran 6 tests in 0.046s OK
...... ---------------------------------------------------------------------- Ran 6 tests in 0.009s OK
...... ---------------------------------------------------------------------- Ran 6 tests in 0.037s OK
...... ---------------------------------------------------------------------- Ran 6 tests in 0.010s OK
EEEEEE
======================================================================
ERROR: test_error_in_columns (test.TestValidateNonogram)
----------------------------------------------------------------------
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/d20140423-11348-uo03c8/test.py", line 41, in test_error_in_columns
self.assertFalse(solution.validate_nonogram(nonogram, keys))
File "/tmp/d20140423-11348-uo03c8/solution.py", line 25, in validate_nonogram
return (validate_all_sequences(nonogram, keys, "rows") and
NameError: global name 'nonogram' is not defined
======================================================================
ERROR: test_error_in_rows (test.TestValidateNonogram)
----------------------------------------------------------------------
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/d20140423-11348-uo03c8/test.py", line 29, in test_error_in_rows
self.assertFalse(solution.validate_nonogram(nonogram, keys))
File "/tmp/d20140423-11348-uo03c8/solution.py", line 25, in validate_nonogram
return (validate_all_sequences(nonogram, keys, "rows") and
NameError: global name 'nonogram' is not defined
======================================================================
ERROR: test_mandatory_empty_square_between_groups (test.TestValidateNonogram)
----------------------------------------------------------------------
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/d20140423-11348-uo03c8/test.py", line 50, in test_mandatory_empty_square_between_groups
self.assertFalse(solution.validate_nonogram(nonogram, keys))
File "/tmp/d20140423-11348-uo03c8/solution.py", line 25, in validate_nonogram
return (validate_all_sequences(nonogram, keys, "rows") and
NameError: global name 'nonogram' is not defined
======================================================================
ERROR: test_python_nonogram (test.TestValidateNonogram)
----------------------------------------------------------------------
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/d20140423-11348-uo03c8/test.py", line 165, in test_python_nonogram
python_keys))
File "/tmp/d20140423-11348-uo03c8/solution.py", line 25, in validate_nonogram
return (validate_all_sequences(nonogram, keys, "rows") and
NameError: global name 'nonogram' is not defined
======================================================================
ERROR: test_ruby_nonogram (test.TestValidateNonogram)
----------------------------------------------------------------------
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/d20140423-11348-uo03c8/test.py", line 285, in test_ruby_nonogram
self.assertTrue(solution.validate_nonogram(ruby_nonogram, ruby_keys))
File "/tmp/d20140423-11348-uo03c8/solution.py", line 25, in validate_nonogram
return (validate_all_sequences(nonogram, keys, "rows") and
NameError: global name 'nonogram' is not defined
======================================================================
ERROR: test_valid_nonogram (test.TestValidateNonogram)
----------------------------------------------------------------------
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/d20140423-11348-uo03c8/test.py", line 17, in test_valid_nonogram
self.assertTrue(solution.validate_nonogram(nonogram, keys))
File "/tmp/d20140423-11348-uo03c8/solution.py", line 25, in validate_nonogram
return (validate_all_sequences(nonogram, keys, "rows") and
NameError: global name 'nonogram' is not defined
----------------------------------------------------------------------
Ran 6 tests in 0.006s
FAILED (errors=6)
...... ---------------------------------------------------------------------- Ran 6 tests in 0.004s OK
...... ---------------------------------------------------------------------- Ran 6 tests in 0.040s OK
EEEEEE
======================================================================
ERROR: test_error_in_columns (test.TestValidateNonogram)
----------------------------------------------------------------------
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/d20140423-11348-18py362/test.py", line 41, in test_error_in_columns
self.assertFalse(solution.validate_nonogram(nonogram, keys))
File "/tmp/d20140423-11348-18py362/solution.py", line 22, in validate_nonogram
match_found = re.fullmatch(reg_exp_row, "".join(nonogram[num_row]))
AttributeError: 'module' object has no attribute 'fullmatch'
======================================================================
ERROR: test_error_in_rows (test.TestValidateNonogram)
----------------------------------------------------------------------
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/d20140423-11348-18py362/test.py", line 29, in test_error_in_rows
self.assertFalse(solution.validate_nonogram(nonogram, keys))
File "/tmp/d20140423-11348-18py362/solution.py", line 22, in validate_nonogram
match_found = re.fullmatch(reg_exp_row, "".join(nonogram[num_row]))
AttributeError: 'module' object has no attribute 'fullmatch'
======================================================================
ERROR: test_mandatory_empty_square_between_groups (test.TestValidateNonogram)
----------------------------------------------------------------------
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/d20140423-11348-18py362/test.py", line 50, in test_mandatory_empty_square_between_groups
self.assertFalse(solution.validate_nonogram(nonogram, keys))
File "/tmp/d20140423-11348-18py362/solution.py", line 22, in validate_nonogram
match_found = re.fullmatch(reg_exp_row, "".join(nonogram[num_row]))
AttributeError: 'module' object has no attribute 'fullmatch'
======================================================================
ERROR: test_python_nonogram (test.TestValidateNonogram)
----------------------------------------------------------------------
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/d20140423-11348-18py362/test.py", line 165, in test_python_nonogram
python_keys))
File "/tmp/d20140423-11348-18py362/solution.py", line 22, in validate_nonogram
match_found = re.fullmatch(reg_exp_row, "".join(nonogram[num_row]))
AttributeError: 'module' object has no attribute 'fullmatch'
======================================================================
ERROR: test_ruby_nonogram (test.TestValidateNonogram)
----------------------------------------------------------------------
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/d20140423-11348-18py362/test.py", line 285, in test_ruby_nonogram
self.assertTrue(solution.validate_nonogram(ruby_nonogram, ruby_keys))
File "/tmp/d20140423-11348-18py362/solution.py", line 22, in validate_nonogram
match_found = re.fullmatch(reg_exp_row, "".join(nonogram[num_row]))
AttributeError: 'module' object has no attribute 'fullmatch'
======================================================================
ERROR: test_valid_nonogram (test.TestValidateNonogram)
----------------------------------------------------------------------
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/d20140423-11348-18py362/test.py", line 17, in test_valid_nonogram
self.assertTrue(solution.validate_nonogram(nonogram, keys))
File "/tmp/d20140423-11348-18py362/solution.py", line 22, in validate_nonogram
match_found = re.fullmatch(reg_exp_row, "".join(nonogram[num_row]))
AttributeError: 'module' object has no attribute 'fullmatch'
----------------------------------------------------------------------
Ran 6 tests in 0.006s
FAILED (errors=6)
..F...
======================================================================
FAIL: test_mandatory_empty_square_between_groups (test.TestValidateNonogram)
----------------------------------------------------------------------
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/d20140423-11348-7r9nez/test.py", line 50, in test_mandatory_empty_square_between_groups
self.assertFalse(solution.validate_nonogram(nonogram, keys))
AssertionError: True is not false
----------------------------------------------------------------------
Ran 6 tests in 0.038s
FAILED (failures=1)
.E....
======================================================================
ERROR: test_error_in_rows (test.TestValidateNonogram)
----------------------------------------------------------------------
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/d20140423-11348-nn4s3e/test.py", line 29, in test_error_in_rows
self.assertFalse(solution.validate_nonogram(nonogram, keys))
File "/tmp/d20140423-11348-nn4s3e/solution.py", line 16, in validate_nonogram
valid_rows = validate_option(nonogram, keys, "rows")
File "/tmp/d20140423-11348-nn4s3e/solution.py", line 10, in validate_option
if len(count_X) != keys[option][index][index_in_all_X]:
IndexError: list index out of range
----------------------------------------------------------------------
Ran 6 tests in 0.006s
FAILED (errors=1)
...... ---------------------------------------------------------------------- Ran 6 tests in 0.005s OK
EEEEEE
======================================================================
ERROR: test_error_in_columns (test.TestValidateNonogram)
----------------------------------------------------------------------
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/d20140423-11348-8ywf2f/test.py", line 41, in test_error_in_columns
self.assertFalse(solution.validate_nonogram(nonogram, keys))
AttributeError: 'module' object has no attribute 'validate_nonogram'
======================================================================
ERROR: test_error_in_rows (test.TestValidateNonogram)
----------------------------------------------------------------------
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/d20140423-11348-8ywf2f/test.py", line 29, in test_error_in_rows
self.assertFalse(solution.validate_nonogram(nonogram, keys))
AttributeError: 'module' object has no attribute 'validate_nonogram'
======================================================================
ERROR: test_mandatory_empty_square_between_groups (test.TestValidateNonogram)
----------------------------------------------------------------------
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/d20140423-11348-8ywf2f/test.py", line 50, in test_mandatory_empty_square_between_groups
self.assertFalse(solution.validate_nonogram(nonogram, keys))
AttributeError: 'module' object has no attribute 'validate_nonogram'
======================================================================
ERROR: test_python_nonogram (test.TestValidateNonogram)
----------------------------------------------------------------------
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/d20140423-11348-8ywf2f/test.py", line 164, in test_python_nonogram
self.assertTrue(solution.validate_nonogram(python_nonogram,
AttributeError: 'module' object has no attribute 'validate_nonogram'
======================================================================
ERROR: test_ruby_nonogram (test.TestValidateNonogram)
----------------------------------------------------------------------
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/d20140423-11348-8ywf2f/test.py", line 285, in test_ruby_nonogram
self.assertTrue(solution.validate_nonogram(ruby_nonogram, ruby_keys))
AttributeError: 'module' object has no attribute 'validate_nonogram'
======================================================================
ERROR: test_valid_nonogram (test.TestValidateNonogram)
----------------------------------------------------------------------
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/d20140423-11348-8ywf2f/test.py", line 17, in test_valid_nonogram
self.assertTrue(solution.validate_nonogram(nonogram, keys))
AttributeError: 'module' object has no attribute 'validate_nonogram'
----------------------------------------------------------------------
Ran 6 tests in 0.005s
FAILED (errors=6)
...... ---------------------------------------------------------------------- Ran 6 tests in 0.003s OK
FF....
======================================================================
FAIL: test_error_in_columns (test.TestValidateNonogram)
----------------------------------------------------------------------
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/d20140423-11348-1u6791y/test.py", line 41, in test_error_in_columns
self.assertFalse(solution.validate_nonogram(nonogram, keys))
AssertionError: True is not false
======================================================================
FAIL: test_error_in_rows (test.TestValidateNonogram)
----------------------------------------------------------------------
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/d20140423-11348-1u6791y/test.py", line 29, in test_error_in_rows
self.assertFalse(solution.validate_nonogram(nonogram, keys))
AssertionError: True is not false
----------------------------------------------------------------------
Ran 6 tests in 0.005s
FAILED (failures=2)
EEEEEE
======================================================================
ERROR: test_error_in_columns (test.TestValidateNonogram)
----------------------------------------------------------------------
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/d20140423-11348-g0112b/test.py", line 41, in test_error_in_columns
self.assertFalse(solution.validate_nonogram(nonogram, keys))
File "/tmp/d20140423-11348-g0112b/solution.py", line 16, in validate_nonogram
if not re.search(pattern, row_string):
NameError: global name 're' is not defined
======================================================================
ERROR: test_error_in_rows (test.TestValidateNonogram)
----------------------------------------------------------------------
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/d20140423-11348-g0112b/test.py", line 29, in test_error_in_rows
self.assertFalse(solution.validate_nonogram(nonogram, keys))
File "/tmp/d20140423-11348-g0112b/solution.py", line 16, in validate_nonogram
if not re.search(pattern, row_string):
NameError: global name 're' is not defined
======================================================================
ERROR: test_mandatory_empty_square_between_groups (test.TestValidateNonogram)
----------------------------------------------------------------------
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/d20140423-11348-g0112b/test.py", line 50, in test_mandatory_empty_square_between_groups
self.assertFalse(solution.validate_nonogram(nonogram, keys))
File "/tmp/d20140423-11348-g0112b/solution.py", line 16, in validate_nonogram
if not re.search(pattern, row_string):
NameError: global name 're' is not defined
======================================================================
ERROR: test_python_nonogram (test.TestValidateNonogram)
----------------------------------------------------------------------
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/d20140423-11348-g0112b/test.py", line 165, in test_python_nonogram
python_keys))
File "/tmp/d20140423-11348-g0112b/solution.py", line 16, in validate_nonogram
if not re.search(pattern, row_string):
NameError: global name 're' is not defined
======================================================================
ERROR: test_ruby_nonogram (test.TestValidateNonogram)
----------------------------------------------------------------------
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/d20140423-11348-g0112b/test.py", line 285, in test_ruby_nonogram
self.assertTrue(solution.validate_nonogram(ruby_nonogram, ruby_keys))
File "/tmp/d20140423-11348-g0112b/solution.py", line 16, in validate_nonogram
if not re.search(pattern, row_string):
NameError: global name 're' is not defined
======================================================================
ERROR: test_valid_nonogram (test.TestValidateNonogram)
----------------------------------------------------------------------
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/d20140423-11348-g0112b/test.py", line 17, in test_valid_nonogram
self.assertTrue(solution.validate_nonogram(nonogram, keys))
File "/tmp/d20140423-11348-g0112b/solution.py", line 16, in validate_nonogram
if not re.search(pattern, row_string):
NameError: global name 're' is not defined
----------------------------------------------------------------------
Ran 6 tests in 0.006s
FAILED (errors=6)
...... ---------------------------------------------------------------------- Ran 6 tests in 0.005s OK
...... ---------------------------------------------------------------------- Ran 6 tests in 0.005s OK
...... ---------------------------------------------------------------------- Ran 6 tests in 0.039s OK
...... ---------------------------------------------------------------------- Ran 6 tests in 0.050s OK
...... ---------------------------------------------------------------------- Ran 6 tests in 0.006s OK
...... ---------------------------------------------------------------------- Ran 6 tests in 0.008s OK
...... ---------------------------------------------------------------------- Ran 6 tests in 0.005s OK
...... ---------------------------------------------------------------------- Ran 6 tests in 0.003s OK
...... ---------------------------------------------------------------------- Ran 6 tests in 0.005s OK
...... ---------------------------------------------------------------------- Ran 6 tests in 0.005s OK
..F...
======================================================================
FAIL: test_mandatory_empty_square_between_groups (test.TestValidateNonogram)
----------------------------------------------------------------------
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/d20140423-11348-pms225/test.py", line 50, in test_mandatory_empty_square_between_groups
self.assertFalse(solution.validate_nonogram(nonogram, keys))
AssertionError: True is not false
----------------------------------------------------------------------
Ran 6 tests in 0.029s
FAILED (failures=1)
...... ---------------------------------------------------------------------- Ran 6 tests in 0.035s OK
...... ---------------------------------------------------------------------- Ran 6 tests in 0.004s OK
...... ---------------------------------------------------------------------- Ran 6 tests in 0.057s OK
...... ---------------------------------------------------------------------- Ran 6 tests in 0.039s OK
..F...
======================================================================
FAIL: test_mandatory_empty_square_between_groups (test.TestValidateNonogram)
----------------------------------------------------------------------
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/d20140423-11348-11nsykj/test.py", line 50, in test_mandatory_empty_square_between_groups
self.assertFalse(solution.validate_nonogram(nonogram, keys))
AssertionError: True is not false
----------------------------------------------------------------------
Ran 6 tests in 0.031s
FAILED (failures=1)
...... ---------------------------------------------------------------------- Ran 6 tests in 0.004s OK
...... ---------------------------------------------------------------------- Ran 6 tests in 0.012s OK
...... ---------------------------------------------------------------------- Ran 6 tests in 0.004s OK
...... ---------------------------------------------------------------------- Ran 6 tests in 0.007s OK
...... ---------------------------------------------------------------------- Ran 6 tests in 0.039s OK
..F...
======================================================================
FAIL: test_mandatory_empty_square_between_groups (test.TestValidateNonogram)
----------------------------------------------------------------------
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/d20140423-11348-1d3auuw/test.py", line 50, in test_mandatory_empty_square_between_groups
self.assertFalse(solution.validate_nonogram(nonogram, keys))
AssertionError: True is not false
----------------------------------------------------------------------
Ran 6 tests in 0.036s
FAILED (failures=1)
...... ---------------------------------------------------------------------- Ran 6 tests in 0.036s OK
...... ---------------------------------------------------------------------- Ran 6 tests in 0.041s OK
...... ---------------------------------------------------------------------- Ran 6 tests in 0.005s OK
..F...
======================================================================
FAIL: test_mandatory_empty_square_between_groups (test.TestValidateNonogram)
----------------------------------------------------------------------
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/d20140423-11348-15uj2kg/test.py", line 50, in test_mandatory_empty_square_between_groups
self.assertFalse(solution.validate_nonogram(nonogram, keys))
AssertionError: True is not false
----------------------------------------------------------------------
Ran 6 tests in 0.025s
FAILED (failures=1)
...... ---------------------------------------------------------------------- Ran 6 tests in 0.022s OK
...... ---------------------------------------------------------------------- Ran 6 tests in 0.008s OK
...... ---------------------------------------------------------------------- Ran 6 tests in 0.011s OK
...... ---------------------------------------------------------------------- Ran 6 tests in 0.027s OK
F.....
======================================================================
FAIL: test_error_in_columns (test.TestValidateNonogram)
----------------------------------------------------------------------
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/d20140423-11348-edc70f/test.py", line 41, in test_error_in_columns
self.assertFalse(solution.validate_nonogram(nonogram, keys))
AssertionError: True is not false
----------------------------------------------------------------------
Ran 6 tests in 0.004s
FAILED (failures=1)
..F...
======================================================================
FAIL: test_mandatory_empty_square_between_groups (test.TestValidateNonogram)
----------------------------------------------------------------------
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/d20140423-11348-1dtlh5f/test.py", line 50, in test_mandatory_empty_square_between_groups
self.assertFalse(solution.validate_nonogram(nonogram, keys))
AssertionError: True is not false
----------------------------------------------------------------------
Ran 6 tests in 0.053s
FAILED (failures=1)
...... ---------------------------------------------------------------------- Ran 6 tests in 0.009s OK
EEEEEE
======================================================================
ERROR: test_error_in_columns (test.TestValidateNonogram)
----------------------------------------------------------------------
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/d20140423-11348-1jm7co/test.py", line 41, in test_error_in_columns
self.assertFalse(solution.validate_nonogram(nonogram, keys))
File "/tmp/d20140423-11348-1jm7co/solution.py", line 16, in validate_nonogram
if keys['rows'][line] != get_sequence(nonogram[line]):
File "/tmp/d20140423-11348-1jm7co/solution.py", line 10, in get_sequence
sequence = filter(filter_key, [list(group) for key, group in groupby(line)])
NameError: global name 'groupby' is not defined
======================================================================
ERROR: test_error_in_rows (test.TestValidateNonogram)
----------------------------------------------------------------------
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/d20140423-11348-1jm7co/test.py", line 29, in test_error_in_rows
self.assertFalse(solution.validate_nonogram(nonogram, keys))
File "/tmp/d20140423-11348-1jm7co/solution.py", line 16, in validate_nonogram
if keys['rows'][line] != get_sequence(nonogram[line]):
File "/tmp/d20140423-11348-1jm7co/solution.py", line 10, in get_sequence
sequence = filter(filter_key, [list(group) for key, group in groupby(line)])
NameError: global name 'groupby' is not defined
======================================================================
ERROR: test_mandatory_empty_square_between_groups (test.TestValidateNonogram)
----------------------------------------------------------------------
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/d20140423-11348-1jm7co/test.py", line 50, in test_mandatory_empty_square_between_groups
self.assertFalse(solution.validate_nonogram(nonogram, keys))
File "/tmp/d20140423-11348-1jm7co/solution.py", line 16, in validate_nonogram
if keys['rows'][line] != get_sequence(nonogram[line]):
File "/tmp/d20140423-11348-1jm7co/solution.py", line 10, in get_sequence
sequence = filter(filter_key, [list(group) for key, group in groupby(line)])
NameError: global name 'groupby' is not defined
======================================================================
ERROR: test_python_nonogram (test.TestValidateNonogram)
----------------------------------------------------------------------
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/d20140423-11348-1jm7co/test.py", line 165, in test_python_nonogram
python_keys))
File "/tmp/d20140423-11348-1jm7co/solution.py", line 16, in validate_nonogram
if keys['rows'][line] != get_sequence(nonogram[line]):
File "/tmp/d20140423-11348-1jm7co/solution.py", line 10, in get_sequence
sequence = filter(filter_key, [list(group) for key, group in groupby(line)])
NameError: global name 'groupby' is not defined
======================================================================
ERROR: test_ruby_nonogram (test.TestValidateNonogram)
----------------------------------------------------------------------
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/d20140423-11348-1jm7co/test.py", line 285, in test_ruby_nonogram
self.assertTrue(solution.validate_nonogram(ruby_nonogram, ruby_keys))
File "/tmp/d20140423-11348-1jm7co/solution.py", line 16, in validate_nonogram
if keys['rows'][line] != get_sequence(nonogram[line]):
File "/tmp/d20140423-11348-1jm7co/solution.py", line 10, in get_sequence
sequence = filter(filter_key, [list(group) for key, group in groupby(line)])
NameError: global name 'groupby' is not defined
======================================================================
ERROR: test_valid_nonogram (test.TestValidateNonogram)
----------------------------------------------------------------------
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/d20140423-11348-1jm7co/test.py", line 17, in test_valid_nonogram
self.assertTrue(solution.validate_nonogram(nonogram, keys))
File "/tmp/d20140423-11348-1jm7co/solution.py", line 16, in validate_nonogram
if keys['rows'][line] != get_sequence(nonogram[line]):
File "/tmp/d20140423-11348-1jm7co/solution.py", line 10, in get_sequence
sequence = filter(filter_key, [list(group) for key, group in groupby(line)])
NameError: global name 'groupby' is not defined
----------------------------------------------------------------------
Ran 6 tests in 0.006s
FAILED (errors=6)
...... ---------------------------------------------------------------------- Ran 6 tests in 0.005s OK
..F...
======================================================================
FAIL: test_mandatory_empty_square_between_groups (test.TestValidateNonogram)
----------------------------------------------------------------------
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/d20140423-11348-1kd2w28/test.py", line 50, in test_mandatory_empty_square_between_groups
self.assertFalse(solution.validate_nonogram(nonogram, keys))
AssertionError: True is not false
----------------------------------------------------------------------
Ran 6 tests in 0.042s
FAILED (failures=1)
...... ---------------------------------------------------------------------- Ran 6 tests in 0.050s OK
...... ---------------------------------------------------------------------- Ran 6 tests in 0.005s OK
...... ---------------------------------------------------------------------- Ran 6 tests in 0.006s OK
..F...
======================================================================
FAIL: test_mandatory_empty_square_between_groups (test.TestValidateNonogram)
----------------------------------------------------------------------
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/d20140423-11348-1mir0z3/test.py", line 50, in test_mandatory_empty_square_between_groups
self.assertFalse(solution.validate_nonogram(nonogram, keys))
AssertionError: True is not false
----------------------------------------------------------------------
Ran 6 tests in 0.038s
FAILED (failures=1)
...... ---------------------------------------------------------------------- Ran 6 tests in 0.005s OK
...... ---------------------------------------------------------------------- Ran 6 tests in 0.049s OK
...... ---------------------------------------------------------------------- Ran 6 tests in 0.006s OK
...... ---------------------------------------------------------------------- Ran 6 tests in 0.036s OK
..F...
======================================================================
FAIL: test_mandatory_empty_square_between_groups (test.TestValidateNonogram)
----------------------------------------------------------------------
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/d20140423-11348-1tkgwx1/test.py", line 50, in test_mandatory_empty_square_between_groups
self.assertFalse(solution.validate_nonogram(nonogram, keys))
AssertionError: True is not false
----------------------------------------------------------------------
Ran 6 tests in 0.052s
FAILED (failures=1)
...... ---------------------------------------------------------------------- Ran 6 tests in 0.041s OK
..F...
======================================================================
FAIL: test_mandatory_empty_square_between_groups (test.TestValidateNonogram)
----------------------------------------------------------------------
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/d20140423-11348-1b0sc40/test.py", line 50, in test_mandatory_empty_square_between_groups
self.assertFalse(solution.validate_nonogram(nonogram, keys))
AssertionError: True is not false
----------------------------------------------------------------------
Ran 6 tests in 0.053s
FAILED (failures=1)