We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4b3e07c commit 3a399b1Copy full SHA for 3a399b1
tests/ndarray/test_zeros.py
@@ -157,3 +157,12 @@ def test_nd_dtype(dtype):
157
np.testing.assert_equal(a2, b2)
158
else:
159
np.testing.assert_equal(a[:], b)
160
+
161
162
+def test_shape_empty():
163
+ # Test that the shape is correctly set to () for an empty array
164
+ a = blosc2.zeros((), dtype=np.int32)
165
+ assert a.shape == ()
166
+ assert a.dtype == np.int32
167
+ b = np.zeros((), dtype=np.int32)
168
+ np.testing.assert_equal(a[()], b)
0 commit comments