We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 38650b6 commit 01185f0Copy full SHA for 01185f0
hist/histv7/test/hist_hist.cxx
@@ -120,6 +120,10 @@ TEST(RHist, FillWeight)
120
hist.Fill(8.5, RWeight(0.8));
121
hist.Fill(std::make_tuple(9.5), RWeight(0.9));
122
123
+ EXPECT_FLOAT_EQ(hist.GetBinContent(RBinIndex(8)), 0.8);
124
+ std::array<RBinIndex, 1> indices = {9};
125
+ EXPECT_FLOAT_EQ(hist.GetBinContent(indices), 0.9);
126
+
127
EXPECT_EQ(hist.GetStats().GetNEntries(), 2);
128
// Cross-checked with TH1
129
EXPECT_FLOAT_EQ(hist.GetStats().ComputeNEffectiveEntries(), 1.9931034);
0 commit comments