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

Method test_copy

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

Source from the content-addressed store, hash-verified

462 self.assertNotEqual(h, histogram(integer(-1, 1, label="ia")))
463
464 def test_copy(self):
465 a = histogram(integer(-1, 1))
466 import copy
467 b = copy.copy(a)
468 self.assertEqual(a, b)
469 self.assertNotEqual(id(a), id(b))
470 c = copy.deepcopy(b)
471 self.assertEqual(b, c)
472 self.assertNotEqual(id(b), id(c))
473
474 def test_fill_1d(self):
475 for uoflow in (False, True):

Callers

nothing calls this directly

Calls 2

integerClass · 0.90
histogramClass · 0.50

Tested by

no test coverage detected