summaryrefslogtreecommitdiffhomepage
path: root/test
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2023-09-15 11:10:37 +0200
committerStanislaw Halik <sthalik@misaki.pl>2023-09-15 11:10:37 +0200
commit6ad1f0a5e45b762a4cae4cd9f1f1e3196ebdca2e (patch)
tree34865d84841877e0d5f5c1b371b2acbff17a6a8f /test
parentdb1a4ec9558f856e3a58362dee9b3b1404f41f62 (diff)
a
Diffstat (limited to 'test')
-rw-r--r--test/path-search.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/test/path-search.cpp b/test/path-search.cpp
index 7253f4d5..93c6c9c7 100644
--- a/test/path-search.cpp
+++ b/test/path-search.cpp
@@ -27,8 +27,8 @@ void test_bbox()
const auto table = loader.scenery("table1");
{
- constexpr auto coord1 = chunk_coords_{1, 1, 0},
- coord2 = chunk_coords_{1, 2, 0};
+ constexpr auto coord1 = chunk_coords_{10, 11, 0},
+ coord2 = chunk_coords_{10, 12, 0};
constexpr auto _15 = TILE_MAX_DIM-1;
using enum rotation;
{
@@ -51,7 +51,7 @@ void test_bbox()
{
using enum rotation;
constexpr auto C = rotation_COUNT;
- constexpr auto ch = chunk_coords_{11, 22, 0};
+ constexpr auto ch = chunk_coords_{21, 22, 0};
auto w = world();
auto& c = w[ch];
@@ -65,9 +65,10 @@ void test_bbox()
c[{8, 8}].wall_north() = {metal2,0};
c.mark_passability_modified();
- fm_assert( !is_passable_1(c, bbox({8, 8}, N)) );
fm_assert( is_passable_1(c, bbox({8, 8}, C)));
+ 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)) );
fm_assert( is_passable_1(c, bbox({8, 8}, W)) );
}
// todo use test chunk