Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ TestArrays = Any[
Complex{Float64}[1+2im, 3, 4+5im, 6im, 7+8im],
[i-j for i in 1:3, j in 1:5],
[i-j+k for i in 1:3, j in 1:4, k in 1:5],
rand(512, 512, 16)
]

# Write a NPZ file with all the test arrays and numbers,
Expand All @@ -55,11 +56,11 @@ for (i, x) in enumerate(TestArrays)
end
filename = "$tmp/big.npz"
npzwrite(filename, old)
new = npzread(filename)
output = npzread(filename)
for (k, v) in old
@test v == new[k]
@test v == output[k]
end
@test old == new
@test old == output


# Write and then read NPY files for each array
Expand Down