MCPcopy Index your code
hub / github.com/numpy/numpy / test_strings

Method test_strings

numpy/lib/tests/test_twodim_base.py:113–115  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

111 assert_equal(eye(3, 2, -3), [[0, 0], [0, 0], [0, 0]])
112
113 def test_strings(self):
114 assert_equal(eye(2, 2, dtype='S3'),
115 [[b'1', b''], [b'', b'1']])
116
117 def test_bool(self):
118 assert_equal(eye(2, 2, dtype=bool), [[True, False], [False, True]])

Callers

nothing calls this directly

Calls 2

assert_equalFunction · 0.90
eyeFunction · 0.90

Tested by

no test coverage detected