Skip to content

Commit

Permalink
test updates
Browse files Browse the repository at this point in the history
  • Loading branch information
nhz2 committed Jul 27, 2024
1 parent ba548f9 commit 0cc6399
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion test/test_errors.jl
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

include("utils.jl")

@testset "decompressing corrupt input" begin
@testset "decompressing corrupt input with $(decompress)" for decompress in (decompress, decompress_bytes)
# HEADER_BITS
@test_throws DecompressionError("invalid block compression mode 3") decompress([0b111, 0x00])
@test_throws DecompressionError("invalid block compression mode 3") decompress([0b110, 0x00])
Expand Down
2 changes: 1 addition & 1 deletion test/test_huffman.jl
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ end
end

@testset "random nbits" begin
for trial in 1:100000
for trial in 1:10000
n = rand(2:19)
num_bits_per_op = rand(0x00:0x07, n)
sum(num_bits_per_op) < 2 && continue
Expand Down

0 comments on commit 0cc6399

Please sign in to comment.