MCPcopy Create free account
hub / github.com/numpy/numpy / test_strings

Method test_strings

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

Source from the content-addressed store, hash-verified

93 assert_equal(eye(3, 2, -3), [[0, 0], [0, 0], [0, 0]])
94
95 def test_strings(self):
96 assert_equal(eye(2, 2, dtype='S3'),
97 [[b'1', b''], [b'', b'1']])
98
99 def test_bool(self):
100 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