Skip to content
Snippets Groups Projects
Commit 7d7ed5c0 authored by Danilo Piparo's avatar Danilo Piparo
Browse files

[RVec] Add test for the `Concatenate` helper

parent 1ee169b5
No related branches found
No related tags found
No related merge requests found
...@@ -886,3 +886,12 @@ TEST(VecOps, AtWithFallback) ...@@ -886,3 +886,12 @@ TEST(VecOps, AtWithFallback)
ROOT::VecOps::RVec<float> v({1.f, 2.f, 3.f}); ROOT::VecOps::RVec<float> v({1.f, 2.f, 3.f});
EXPECT_FLOAT_EQ(v.at(7, 99.f), 99.f); EXPECT_FLOAT_EQ(v.at(7, 99.f), 99.f);
} }
TEST(VecOps, Concatenate)
{
RVec<float> rvf {0.f, 1.f, 2.f};
RVec<int> rvi {7, 8, 9};
const auto res = Concatenate(rvf, rvi);
const RVec<float> ref { 0.00000f, 1.00000f, 2.00000f, 7.00000f, 8.00000f, 9.00000f };
CheckEqual(res, ref);
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment