Skip to content

Commit

Permalink
update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
magland committed Mar 18, 2024
1 parent 61412c8 commit edd7b92
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions tests/test_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,10 @@ def test_scalar_datasets():


def test_numpy_arrays():
X1 = ("1", np.arange(60).reshape(3, 20), (3, 7))
X2 = ("2", np.arange(60).reshape(3, 20), None)
for label, array, chunks in [X1, X2]:
array_1 = ("1", np.arange(60).reshape(3, 20), (3, 7))
array_2 = ("2", np.arange(60).reshape(3, 20), None)
array_boolean = ("3", np.array([[True, False, True], [False, True, False]]), None)
for label, array, chunks in [array_1, array_2, array_boolean]:
print(f"Testing numpy array {label}")
with tempfile.TemporaryDirectory() as tmpdir:
filename = f"{tmpdir}/test.h5"
Expand Down

0 comments on commit edd7b92

Please sign in to comment.