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

Method test_repr

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

Source from the content-addressed store, hash-verified

188 self.assertEqual(len(circular(4, 1.0)), 4)
189
190 def test_repr(self):
191 for s in ("circular(4)",
192 "circular(4, phase=1)",
193 "circular(4, phase=1, label='x')",
194 "circular(4, label='x')"):
195 self.assertEqual(str(eval(s)), s)
196
197 def test_getitem(self):
198 v = [1.0, 1.0 + 0.5 * pi, 1.0 + pi, 1.0 + 1.5 * pi, 1.0 + 2.0 * pi]

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected