Skip to content

Commit 85d222a

Browse files
authored
[test] further test cases
1 parent cb2c09e commit 85d222a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

hist/hist/test/test_TH1.cxx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -318,5 +318,8 @@ TEST(TH1, SetBufferedSumw2)
318318
// https://github.com/root-project/root/issues/20185
319319
TEST(TAxis, EqualBinEdges)
320320
{
321-
ROOT_EXPECT_ERROR(TAxis _({1, 1}), "TAxis::Set", "bins must be in increasing order");
321+
ROOT_EXPECT_ERROR(TAxis _({1, 1}), "TAxis::Set", "bin edges must be in increasing order");
322+
ROOT_EXPECT_ERROR(TAxis _(1, 1, 0), "TAxis::Set", "upper edge must be strictly higher than lower edge");
323+
ROOT_EXPECT_ERROR(TAxis _(1, -std::numeric_limits<double>::infinity(), 0), "TAxis::Set", "fixed binwidth not compatible with infinite lower/upper edges");
324+
ROOT_EXPECT_ERROR(TAxis _(1, 0. std::numeric_limits<double>::infinity()), "TAxis::Set", "fixed binwidth not compatible with infinite lower/upper edges");
322325
}

0 commit comments

Comments
 (0)