diff --git a/sources/test_grid.py b/sources/test_grid.py index eb6f1d0..e8af750 100644 --- a/sources/test_grid.py +++ b/sources/test_grid.py @@ -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 \ No newline at end of file