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
|
import pytest
|
||||||
from grid import *
|
from grid import *
|
||||||
|
|
||||||
|
|
||||||
@pytest.fixture
|
@pytest.fixture
|
||||||
def array():
|
def array():
|
||||||
return [['B', ' ', ' ', ' '],
|
return [['B', ' ', ' ', ' '],
|
||||||
|
@ -51,33 +52,3 @@ def test_with_state(full_grid, array):
|
||||||
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
|
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue