diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2023-09-12 05:52:55 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2023-09-12 05:52:55 +0200 |
commit | aae112ae02b415483ac03c59629dc9290bd833cf (patch) | |
tree | a4763c87cdb7fd00109255a618177c30d1f0fa73 /test | |
parent | 7c56df7eed83af63e018be1be5507c1ca8cf1b99 (diff) |
a
Diffstat (limited to 'test')
-rw-r--r-- | test/path-search.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
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 } |