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

Method test_binary

numpy/core/tests/test_multiarray.py:5581–5586  ·  view source on GitHub ↗
(self, tmp_filename)

Source from the content-addressed store, hash-verified

5579 sep=' ')
5580
5581 def test_binary(self, tmp_filename):
5582 self._check_from(
5583 b'\x00\x00\x80?\x00\x00\x00@\x00\x00@@\x00\x00\x80@',
5584 np.array([1, 2, 3, 4]),
5585 tmp_filename,
5586 dtype='<f4')
5587
5588 def test_string(self, tmp_filename):
5589 self._check_from(b'1,2,3,4', [1., 2., 3., 4.], tmp_filename, sep=',')

Callers

nothing calls this directly

Calls 1

_check_fromMethod · 0.95

Tested by

no test coverage detected