From aae112ae02b415483ac03c59629dc9290bd833cf Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Tue, 12 Sep 2023 05:52:55 +0200 Subject: a --- test/path-search.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'test') diff --git a/test/path-search.cpp b/test/path-search.cpp index 8e91d763..3a78489f 100644 --- a/test/path-search.cpp +++ b/test/path-search.cpp @@ -30,19 +30,19 @@ void test_bbox() { using enum rotation; auto w = world(); - auto& c12 = w[chunk_coords_{1, 2, 0}]; + [[maybe_unused]] auto& c12 = w[chunk_coords_{1, 2, 0}]; [[maybe_unused]] auto& c11 = w[chunk_coords_{1, 1, 0}]; c12[{0, 0}].wall_north() = {metal2, 0}; - fm_assert( !sample(c12, bbox({0, 0}, N)) ); - fm_assert( sample(c12, bbox({0, 0}, E)) ); - fm_assert( sample(c12, bbox({0, 0}, S)) ); - fm_assert( sample(c12, bbox({0, 0}, W)) ); - fm_assert( sample2(w, chunk_coords_{1, 1, 0}, bbox({0, TILE_MAX_DIM-1}, W)) ); fm_assert( sample2(w, chunk_coords_{1, 1, 0}, bbox({0, TILE_MAX_DIM-1}, E)) ); fm_assert( sample2(w, chunk_coords_{1, 1, 0}, bbox({0, TILE_MAX_DIM-1}, N)) ); fm_assert( !sample2(w, chunk_coords_{1, 1, 0}, bbox({0, TILE_MAX_DIM-1}, S)) ); + + fm_assert( !sample(c12, bbox({0, 0}, N)) ); + fm_assert( sample(c12, bbox({0, 0}, E)) ); + fm_assert( sample(c12, bbox({0, 0}, S)) ); + fm_assert( sample(c12, bbox({0, 0}, W)) ); } // todo use test chunk } -- cgit v1.2.3