From 7d7ed5c09e407c392fc955b5cb5619fe13e9a5d5 Mon Sep 17 00:00:00 2001
From: Danilo Piparo <danilo.piparo@cern.ch>
Date: Fri, 29 Mar 2019 13:51:22 +0100
Subject: [PATCH] [RVec] Add test for the `Concatenate` helper

---
 math/vecops/test/vecops_rvec.cxx | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/math/vecops/test/vecops_rvec.cxx b/math/vecops/test/vecops_rvec.cxx
index a581bbd7244..1fd9cd84d3c 100644
--- a/math/vecops/test/vecops_rvec.cxx
+++ b/math/vecops/test/vecops_rvec.cxx
@@ -886,3 +886,12 @@ TEST(VecOps, AtWithFallback)
    ROOT::VecOps::RVec<float> v({1.f, 2.f, 3.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);
+}
-- 
GitLab