summaryrefslogtreecommitdiffhomepage
path: root/test/path-search.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2023-09-15 16:02:56 +0200
committerStanislaw Halik <sthalik@misaki.pl>2023-09-15 17:39:32 +0200
commit44125b422bb75b9a14dc83d01325e9b1ef968bf6 (patch)
treea60f96cccf131dde122d5993bcf10f5b5194e65d /test/path-search.cpp
parentffa0f02e40286f56b261f32195118fe9a6d949cc (diff)
a
Diffstat (limited to 'test/path-search.cpp')
-rw-r--r--test/path-search.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/path-search.cpp b/test/path-search.cpp
index 93c6c9c7..f6a567a6 100644
--- a/test/path-search.cpp
+++ b/test/path-search.cpp
@@ -58,6 +58,9 @@ void test_bbox()
c[{8, 7}].wall_north() = {metal2,0};
c[{8, 9}].wall_north() = {metal2,0};
+ fm_assert( is_passable_1(c, bbox({8, 6}, N)) );
+ fm_assert( !is_passable_1(c, bbox({8, 6}, S)) );
+ fm_assert( !is_passable_1(c, bbox({8, 7}, N)) );
fm_assert( is_passable_1(c, bbox({8, 8}, N)) );
fm_assert( is_passable_1(c, bbox({8, 8}, E)) );
fm_assert( !is_passable_1(c, bbox({8, 8}, S)) );
@@ -66,6 +69,7 @@ void test_bbox()
c[{8, 8}].wall_north() = {metal2,0};
c.mark_passability_modified();
fm_assert( is_passable_1(c, bbox({8, 8}, C)));
+ fm_assert( !is_passable_1(c, bbox({8, 7}, S)) );
fm_assert( !is_passable_1(c, bbox({8, 8}, N)) );
fm_assert( is_passable_1(c, bbox({8, 8}, E)) );
fm_assert( !is_passable_1(c, bbox({8, 8}, S)) );