Skip to content

Commit

Permalink
Update hist/hist/test/test_TH2Poly_GetNumberOfBins.cxx
Browse files Browse the repository at this point in the history
Co-authored-by: Stephan Hageboeck <stephan.hageboeck@cern.ch>
  • Loading branch information
hqucms and hageboeck committed Oct 20, 2024
1 parent 998a0d8 commit 9d0f145
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions hist/hist/test/test_TH2Poly_GetNumberOfBins.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@

TEST(TH2Poly, GetNumberOfBins)
{
TH2Poly *h2p = new TH2Poly();
EXPECT_EQ(0, h2p->GetNumberOfBins());
TH2Poly h2p;
EXPECT_EQ(0, h2p.GetNumberOfBins());

h2p->AddBin(1, 1, 1, 1);
EXPECT_EQ(1, h2p->GetNumberOfBins());
h2p.AddBin(1, 1, 1, 1);
EXPECT_EQ(1, h2p.GetNumberOfBins());
}

0 comments on commit 9d0f145

Please sign in to comment.