Skip to content

Commit

Permalink
Merge 21b4c7f into 3bc55a5
Browse files Browse the repository at this point in the history
  • Loading branch information
lucaskanashiro committed Mar 25, 2020
2 parents 3bc55a5 + 21b4c7f commit 41cffc3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/file_extract_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,8 @@ def test_extract_incorrect_size
assert_equal true_size, a_entry.size
end

true_size_bytes = [compressed_size, true_size, file_name.size].pack('LLS')
fake_size_bytes = [compressed_size, fake_size, file_name.size].pack('LLS')
true_size_bytes = [compressed_size, true_size, file_name.size].pack('V3')
fake_size_bytes = [compressed_size, fake_size, file_name.size].pack('V3')

data = File.binread(real_zip)
assert data.include?(true_size_bytes)
Expand Down

0 comments on commit 41cffc3

Please sign in to comment.