diff options
Diffstat (limited to 'modules/core/tests')
| -rw-r--r-- | modules/core/tests/particles.cpp | 2 | ||||
| -rw-r--r-- | modules/core/tests/schema.cpp | 19 |
2 files changed, 20 insertions, 1 deletions
diff --git a/modules/core/tests/particles.cpp b/modules/core/tests/particles.cpp index 592c367..e060097 100644 --- a/modules/core/tests/particles.cpp +++ b/modules/core/tests/particles.cpp @@ -24,7 +24,7 @@ SAW_TEST("Verlet step 2D - Planar"){ saw::data<sch::Scalar<sch::T>> dt; dt.at({}).set(0.5); - lbm::verlet_step_lambda_old<sch::T,2u>(particle,dt); + lbm::verlet_step_lambda<sch::T,2u>(particle,dt); SAW_EXPECT(pos.at({{0}}).get() == 0.25, std::string{"Incorrect Pos X: "} + std::to_string(pos.at({{0}}).get())); SAW_EXPECT(pos.at({{1}}).get() == 0.0, std::string{"Incorrect Pos Y: "} + std::to_string(pos.at({{1}}).get())); diff --git a/modules/core/tests/schema.cpp b/modules/core/tests/schema.cpp new file mode 100644 index 0000000..b705af0 --- /dev/null +++ b/modules/core/tests/schema.cpp @@ -0,0 +1,19 @@ +#include <forstio/test/suite.hpp> + +#include "../c++/abstract/schema.hpp" + +namespace { +namespace ts { +using namespace kel::lbm::sch; + +using TPtr = Ptr<UInt16>; +using TVal = UInt16; +} + +SAW_TEST("Abstract/Schema/Ptr"){ + using namespace kel::lbm; + + // static_assert(std::is_same_v<typename schema_decay<ts::TPtr>::Schema, ts::TVal>, "schema decay failed"); +} + +} |
