MCPcopy
hub / github.com/numpy/numpy / test_repr

Method test_repr

numpy/matrixlib/tests/test_defmatrix.py:188–190  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

186 assert_(A.mean() == matrix(0.5))
187
188 def test_repr(self):
189 A = matrix([[1, 0], [0, 1]])
190 assert_(repr(A) == "matrix([[1, 0],\n [0, 1]])")
191
192 def test_make_bool_matrix_from_str(self):
193 A = matrix('True; True; False')

Callers

nothing calls this directly

Calls 2

matrixClass · 0.90
assert_Function · 0.90

Tested by

no test coverage detected