From 2a5261cd719547686f283b2aeae004b589b69e32 Mon Sep 17 00:00:00 2001 From: "Claudius \"keldu\" Holeksa" Date: Fri, 20 Mar 2026 18:23:39 +0100 Subject: Fraction and downcast looks ok. Need upper bound now --- lib/core/tests/math.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'lib/core/tests') diff --git a/lib/core/tests/math.cpp b/lib/core/tests/math.cpp index 7c9dc14..970004b 100644 --- a/lib/core/tests/math.cpp +++ b/lib/core/tests/math.cpp @@ -30,11 +30,17 @@ SAW_TEST("Math/Floor Index from Pos"){ pos.at({{1u}}) = -50.0; } - auto ind = lbm::floor_index_from_position(pos); + auto ind_frac = lbm::position_to_index_and_fraction(pos); + auto& ind = ind_frac.template get<0u>(); for(uint64_t i = 0u; i < 2u; ++i){ std::cout<(); + for(uint64_t i = 0u; i < 2u; ++i){ + std::cout<