Skip to content
Snippets Groups Projects
Commit cb112a45 authored by Enrico Guiraud's avatar Enrico Guiraud
Browse files

[DF] Add test for ROOT-9558

parent 3d8c8bee
No related branches found
No related tags found
No related merge requests found
......@@ -617,3 +617,15 @@ TEST(RDataFrameInterface, Describe)
"myFloat Float_t Dataset";
EXPECT_EQ(df3.Describe(), ref2);
}
// https://sft.its.cern.ch/jira/browse/ROOT-9558
TEST(RDFSimpleTests, LeafWithDifferentNameThanBranch)
{
TTree t("t", "t");
int x = 42;
t.Branch("x", &x, "y/I");
t.Fill();
auto m = ROOT::RDataFrame(t).Max<int>("x");
EXPECT_EQ(*m, 42);
}
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