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

Method test_array

numpy/lib/tests/test_io.py:135–149  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

133 self.roundtrip(np.asfortranarray(a)[1:], file_on_disk=True)
134
135 def test_array(self):
136 a = np.array([], float)
137 self.check_roundtrips(a)
138
139 a = np.array([[1, 2], [3, 4]], float)
140 self.check_roundtrips(a)
141
142 a = np.array([[1, 2], [3, 4]], int)
143 self.check_roundtrips(a)
144
145 a = np.array([[1 + 5j, 2 + 6j], [3 + 7j, 4 + 8j]], dtype=np.csingle)
146 self.check_roundtrips(a)
147
148 a = np.array([[1 + 5j, 2 + 6j], [3 + 7j, 4 + 8j]], dtype=np.cdouble)
149 self.check_roundtrips(a)
150
151 def test_array_object(self):
152 a = np.array([], object)

Callers

nothing calls this directly

Calls 1

check_roundtripsMethod · 0.95

Tested by

no test coverage detected