MCPcopy Create free account
hub / github.com/boostorg/histogram / test_repr

Method test_repr

test/python_suite_test.py:261–267  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

259 self.assertEqual(len(variable(-0.1, 0.2, 0.3)), 2)
260
261 def test_repr(self):
262 for s in ("variable(-0.1, 0.2)",
263 "variable(-0.1, 0.2, 0.3)",
264 "variable(-0.1, 0.2, 0.3, label='va')",
265 "variable(-0.1, 0.2, 0.3, uoflow=False)",
266 "variable(-0.1, 0.2, 0.3, label='va', uoflow=False)"):
267 self.assertEqual(str(eval(s)), s)
268
269 def test_getitem(self):
270 v = [-0.1, 0.2, 0.3]

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected