|
@@ -26,7 +26,6 @@ class TestVisibilityMatrix(BaseTest):
|
26
|
26
|
assert [0.7, 0.0, 0.0] == matrix[0]
|
27
|
27
|
assert [0.0, 0.0, 0.5] == matrix[1]
|
28
|
28
|
|
29
|
|
- @pytest.mark.skip(reason='Not implemented yet')
|
30
|
29
|
def test_get_path_positions(self):
|
31
|
30
|
visibility = VisibilityMatrix()
|
32
|
31
|
visibility.initialize_empty_matrix('testing', height=0.5, matrix_width=3, matrix_height=2)
|
|
@@ -34,9 +33,8 @@ class TestVisibilityMatrix(BaseTest):
|
34
|
33
|
visibility.update_matrix('testing', height=0.5, x=0, y=0, value=0.7)
|
35
|
34
|
|
36
|
35
|
path_positions = visibility.get_path_positions(from_=(0, 0), to=(2, 1))
|
37
|
|
- assert [(0, 0), (0, 1), (1, 2)] == path_positions
|
|
36
|
+ assert [(0, 0), (1, 0), (2, 1)] == path_positions
|
38
|
37
|
|
39
|
|
- @pytest.mark.skip(reason='Not implemented yet')
|
40
|
38
|
def test_get_path_values(self):
|
41
|
39
|
visibility = VisibilityMatrix()
|
42
|
40
|
visibility.initialize_empty_matrix('testing', height=0.5, matrix_width=3, matrix_height=2)
|
|
@@ -44,5 +42,5 @@ class TestVisibilityMatrix(BaseTest):
|
44
|
42
|
visibility.update_matrix('testing', height=0.5, x=0, y=0, value=0.7)
|
45
|
43
|
|
46
|
44
|
path_positions = visibility.get_path_positions(from_=(0, 0), to=(2, 1))
|
47
|
|
- path_values = visibility.get_values_for_path(path_positions=path_positions)
|
|
45
|
+ path_values = visibility.get_values_for_path('testing', height=0.5, path_positions=path_positions)
|
48
|
46
|
assert [0.7, 0.0, 0.5] == path_values
|