Skip to content

Commit

Permalink
Merge pull request #38 from nhz2/patch-1
Browse files Browse the repository at this point in the history
Update test_validate.jl for new CodecZlib error type
  • Loading branch information
reallyasi9 authored Jan 28, 2025
2 parents b7a45a3 + 5e18023 commit b46dba6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/test_validate.jl
Original file line number Diff line number Diff line change
Expand Up @@ -146,12 +146,12 @@ end
zipsource(bad_uncompressed_file) do source
# file is bad
f = next_file(source)
@test_throws ZlibError validate(f)
@test_throws Exception validate(f)
end
zipsource(bad_uncompressed_file) do source
# note: this error breaks reading because the zlib codec does not read complete information
for file in source
@test_throws ZlibError read(file)
@test_throws Exception read(file)
end
# archive is bad
@test_throws ErrorException validate(source)
Expand Down Expand Up @@ -190,4 +190,4 @@ end
# TODO: EOCD checking
# TODO: duplicate file name checking
# TODO: out of order CD
end
end

0 comments on commit b46dba6

Please sign in to comment.