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 <[email protected]>
  • Loading branch information
hqucms and hageboeck authored Oct 16, 2024
1 parent daa7427 commit 76760e7
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 76760e7

Please sign in to comment.