summaryrefslogtreecommitdiff
path: root/lib/core/tests/math.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/core/tests/math.cpp')
-rw-r--r--lib/core/tests/math.cpp8
1 files changed, 7 insertions, 1 deletions
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<<ind.at({{i}}).get()<<" ";
}
std::cout<<std::endl;
+ auto& frac = ind_frac.template get<1u>();
+ for(uint64_t i = 0u; i < 2u; ++i){
+ std::cout<<frac.at({{i}}).get()<<" ";
+ }
+ std::cout<<std::endl;
SAW_EXPECT(true, "Default true check");
}