remove useless comments

This commit is contained in:
Gabriel Augendre 2015-01-02 19:48:35 +01:00
parent 5ee72d9383
commit fd778a61a5

View file

@ -19,6 +19,7 @@ __author__ = 'gaugendre'
import pytest import pytest
from grid import * from grid import *
@pytest.fixture @pytest.fixture
def array(): def array():
return [['B', ' ', ' ', ' '], return [['B', ' ', ' ', ' '],
@ -50,34 +51,4 @@ def test_with_state(full_grid, array):
for square in line: for square in line:
assert square.state == array[i][j] assert square.state == array[i][j]
j += 1 j += 1
i += 1 i += 1
# @pytest.fixture()
# def matrix():
# return [[0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 0, 0, 1, 1],
# [1, 1, 1, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 1, 1],
# [1, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1],
# [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
# [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
# [0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0],
# [1, 1, 1, 1, 0, 1, 0, 0, 1, 1, 1, 0, 0, 0, 0],
# [0, 0, 0, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0]]
#
#
# def test_out_of_zone(matrix):
# beginning = Pixel(0, 0)
# assert region_growing(matrix, beginning) is None
#
#
# def test_in_zone(matrix):
# beginning = Pixel(1, 1)
# assert region_growing(matrix, beginning) == {Pixel(1, 0), Pixel(1, 1),
# Pixel(1, 2), Pixel(2, 0),
# Pixel(2, 1)}
#
#
# def test_out_of_matrix(matrix):
# beginning = Pixel(15, 12)
# assert region_growing(matrix, beginning) is None