Skip to content

Commit 692d7d8

Browse files
committed
[Python][Hist] add tests
1 parent 942a236 commit 692d7d8

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

bindings/pyroot/pythonizations/test/th1_fillN.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,14 @@ def test_fill_arraylike(self):
5656
with self.subTest(input_type=type(input_data).__name__):
5757
self._run_fill_test(input_data)
5858

59+
# Test filling with a string argument
60+
def test_fill_string_argument(self):
61+
h = ROOT.TH1D("h", "h", 5, 0, 5)
62+
try:
63+
h.Fill("a", 1)
64+
except Exception:
65+
self.fail()
66+
5967

6068
if __name__ == "__main__":
6169
unittest.main()

0 commit comments

Comments
 (0)