From 952940c3487856447bb80c819b61483b8028d027 Mon Sep 17 00:00:00 2001 From: "Claudius \"keldu\" Holeksa" Date: Tue, 20 Jan 2026 14:50:23 +0100 Subject: Chunk setup test --- lib/core/tests/chunk.cpp | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) (limited to 'lib/core/tests/chunk.cpp') diff --git a/lib/core/tests/chunk.cpp b/lib/core/tests/chunk.cpp index 5110597..a9d1748 100644 --- a/lib/core/tests/chunk.cpp +++ b/lib/core/tests/chunk.cpp @@ -19,8 +19,8 @@ SAW_TEST("Chunk Ghost size 0"){ SAW_TEST("Chunk Ghost size 1"){ using namespace kel; - using TestChunk = lbm::sch::Chunk; - using TestArray = sch::FixedArray; + using TestChunk = lbm::sch::Chunk; + using TestArray = sch::FixedArray; SAW_EXPECT((std::is_same_v), "Types are not identical"); } @@ -28,10 +28,20 @@ SAW_TEST("Chunk Ghost size 1"){ SAW_TEST("Chunk Ghost size 3"){ using namespace kel; - using TestChunk = lbm::sch::Chunk; - using TestArray = sch::FixedArray; + using TestChunk = lbm::sch::Chunk; + using TestArray = sch::FixedArray; SAW_EXPECT((std::is_same_v), "Types are not identical"); } +SAW_TEST("Chunk setup"){ + using namespace kel; + + using TestChunk = lbm::sch::Chunk; + + auto chunk = saw::heap>(); + chunk->at({{0u,0u}}).set(1.0f); + SAW_EXPECT((chunk->ghost_at({{1u,1u}}).get() == 1.0f),"Check if ghost is at shifted spot."); +} + } -- cgit v1.2.3