remove useless comments
This commit is contained in:
parent
5ee72d9383
commit
fd778a61a5
1 changed files with 2 additions and 31 deletions
|
@ -19,6 +19,7 @@ __author__ = 'gaugendre'
|
|||
import pytest
|
||||
from grid import *
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
def array():
|
||||
return [['B', ' ', ' ', ' '],
|
||||
|
@ -50,34 +51,4 @@ def test_with_state(full_grid, array):
|
|||
for square in line:
|
||||
assert square.state == array[i][j]
|
||||
j += 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
|
||||
|
||||
|
||||
i += 1
|
Loading…
Reference in a new issue